基础版本完成

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

@@ -19,6 +19,10 @@
</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,15 @@
server:
port: 8201
spring:
application:
name: bookservice
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