用户服务~~ 基本配置信息

master
Administrator 3 years ago
parent 1eb3ec1a5a
commit af0bc2c1ef

@ -12,5 +12,15 @@
<artifactId>05-userpoints</artifactId>
<description>管理用户积分</description>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
</dependencies>
</project>

@ -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);
}
}

@ -0,0 +1,10 @@
server:
port: 8083
spring:
application:
name: userpoints
cloud:
nacos:
discovery:
server-addr: 114.116.226.76:8848
Loading…
Cancel
Save