基础版本完成
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
|
@@ -1,8 +1,16 @@
|
||||
server:
|
||||
port: 8101
|
||||
spring:
|
||||
application:
|
||||
name: userservice
|
||||
datasource:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://43.143.164.194:3306/mac
|
||||
username: mac
|
||||
password: mactest
|
||||
eureka:
|
||||
client:
|
||||
# 跟上面一样,需要指向Eureka服务端地址,这样才能进行注册
|
||||
service-url:
|
||||
defaultZone: http://localhost:8888/eureka
|
||||
|
||||
|
Reference in New Issue
Block a user