From 3dd267b73b013ebcb72333e0579924fe54376546 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 22 Mar 2023 15:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E4=B8=8B=E5=8D=95=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E5=9F=BA=E6=9C=AC=E9=85=8D=E7=BD=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01-placeorder/pom.xml | 15 +++++++++++++++ .../com/mashibing/PlaceOrderStarterApp.java | 18 ++++++++++++++++++ .../src/main/resources/application.yml | 10 ++++++++++ pom.xml | 2 +- 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 01-placeorder/src/main/java/com/mashibing/PlaceOrderStarterApp.java create mode 100644 01-placeorder/src/main/resources/application.yml diff --git a/01-placeorder/pom.xml b/01-placeorder/pom.xml index a486e1a..c9875fb 100644 --- a/01-placeorder/pom.xml +++ b/01-placeorder/pom.xml @@ -13,4 +13,19 @@ 当前是下单服务 + + + org.springframework.boot + spring-boot-starter-web + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + \ No newline at end of file diff --git a/01-placeorder/src/main/java/com/mashibing/PlaceOrderStarterApp.java b/01-placeorder/src/main/java/com/mashibing/PlaceOrderStarterApp.java new file mode 100644 index 0000000..69057cf --- /dev/null +++ b/01-placeorder/src/main/java/com/mashibing/PlaceOrderStarterApp.java @@ -0,0 +1,18 @@ +package com.mashibing; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; + +/** + * @author zjw + * @description + */ +@SpringBootApplication +@EnableDiscoveryClient +public class PlaceOrderStarterApp { + + public static void main(String[] args) { + SpringApplication.run(PlaceOrderStarterApp.class,args); + } +} diff --git a/01-placeorder/src/main/resources/application.yml b/01-placeorder/src/main/resources/application.yml new file mode 100644 index 0000000..4b5ff9d --- /dev/null +++ b/01-placeorder/src/main/resources/application.yml @@ -0,0 +1,10 @@ +server: + port: 80 + +spring: + application: + name: placeorder + cloud: + nacos: + discovery: + server-addr: 114.116.226.76:8848 \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3a1f9cc..eb73f21 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ Hoxton.SR12 - 2.2.7.RELEASE + 2.2.6.RELEASE