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