From af0bc2c1ef8b7d8065762c72db8567fa122412f6 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 22 Mar 2023 16:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=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 --- 05-userpoints/pom.xml | 10 ++++++++++ .../com/mashibing/UserPointsStarterApp.java | 18 ++++++++++++++++++ .../src/main/resources/application.yml | 10 ++++++++++ 3 files changed, 38 insertions(+) create mode 100644 05-userpoints/src/main/java/com/mashibing/UserPointsStarterApp.java create mode 100644 05-userpoints/src/main/resources/application.yml diff --git a/05-userpoints/pom.xml b/05-userpoints/pom.xml index c3874e2..564bb5a 100644 --- a/05-userpoints/pom.xml +++ b/05-userpoints/pom.xml @@ -12,5 +12,15 @@ 05-userpoints 管理用户积分 + + + 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/05-userpoints/src/main/java/com/mashibing/UserPointsStarterApp.java b/05-userpoints/src/main/java/com/mashibing/UserPointsStarterApp.java new file mode 100644 index 0000000..ef9cb35 --- /dev/null +++ b/05-userpoints/src/main/java/com/mashibing/UserPointsStarterApp.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 UserPointsStarterApp { + + public static void main(String[] args) { + SpringApplication.run(UserPointsStarterApp.class,args); + } +} diff --git a/05-userpoints/src/main/resources/application.yml b/05-userpoints/src/main/resources/application.yml new file mode 100644 index 0000000..0bd009d --- /dev/null +++ b/05-userpoints/src/main/resources/application.yml @@ -0,0 +1,10 @@ +server: + port: 8083 + +spring: + application: + name: userpoints + cloud: + nacos: + discovery: + server-addr: 114.116.226.76:8848 \ No newline at end of file