From 2c4b61f34064fd8e8f352598e4de60b31931b063 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 22 Mar 2023 16:05:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=AE=B6=E6=9C=8D=E5=8A=A1~~=20=20?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 06-business/pom.xml | 11 +++++++++++ .../com/mashibing/BusinessStarterApp.java | 19 +++++++++++++++++++ .../src/main/resources/application.yml | 10 ++++++++++ 3 files changed, 40 insertions(+) create mode 100644 06-business/src/main/java/com/mashibing/BusinessStarterApp.java create mode 100644 06-business/src/main/resources/application.yml diff --git a/06-business/pom.xml b/06-business/pom.xml index cb1781f..bebce64 100644 --- a/06-business/pom.xml +++ b/06-business/pom.xml @@ -12,4 +12,15 @@ 06-business 商家服务 + + + + org.springframework.boot + spring-boot-starter-web + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + \ No newline at end of file diff --git a/06-business/src/main/java/com/mashibing/BusinessStarterApp.java b/06-business/src/main/java/com/mashibing/BusinessStarterApp.java new file mode 100644 index 0000000..f8ad316 --- /dev/null +++ b/06-business/src/main/java/com/mashibing/BusinessStarterApp.java @@ -0,0 +1,19 @@ +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 BusinessStarterApp { + + public static void main(String[] args) { + SpringApplication.run(BusinessStarterApp.class,args); + } + +} diff --git a/06-business/src/main/resources/application.yml b/06-business/src/main/resources/application.yml new file mode 100644 index 0000000..4bb633f --- /dev/null +++ b/06-business/src/main/resources/application.yml @@ -0,0 +1,10 @@ +server: + port: 8084 + +spring: + application: + name: business + cloud: + nacos: + discovery: + server-addr: 114.116.226.76:8848 \ No newline at end of file