基础版本完成

This commit is contained in:
2023-08-15 10:27:06 +08:00
parent 9cf9f6b824
commit fd494e7cb2
11 changed files with 97 additions and 7 deletions

View File

@@ -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>

View File

@@ -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