diff --git a/pom.xml b/pom.xml
index 552c38f..c3ca758 100644
--- a/pom.xml
+++ b/pom.xml
@@ -145,6 +145,17 @@
${shardingsphere-jdbc.version}
+
+
+ org.springframework.boot
+ spring-boot-starter-actuator
+
+
+ de.codecentric
+ spring-boot-admin-starter-client
+ 3.0.0-M1
+
+
mysql
mysql-connector-java
@@ -200,6 +211,17 @@
false
+
+ sonatype-nexus-snapshots
+ Sonatype Nexus Snapshots
+ https://oss.sonatype.org/content/repositories/snapshots/
+
+ true
+
+
+ false
+
+
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index fa82642..5b97094 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -1,7 +1,6 @@
spring:
profiles:
active: dev
-
# 将所有数字转为 String 类型返回,避免前端数据精度丢失的问题
jackson:
generator:
@@ -10,6 +9,8 @@ spring:
# 上传文件最大大小
multipart:
max-file-size: 5MB
+ application:
+ name: novel
server:
port: 8888
@@ -129,6 +130,45 @@ xxl:
accessToken: 123
+---
+spring:
+ config:
+ activate:
+ on-profile: dev
+# Spring Boot 应用管理和监控
+ boot:
+ admin:
+ client:
+ # 是否开启 Spring Boot Admin 客户端
+ enabled: false
+ # Spring Boot Admin 服务端注册地址
+ url: http://localhost:8080
+ # Spring Boot Admin 服务端认证用户名
+ username: novel
+ # Spring Boot Admin 服务端认证密码
+ password: novel
+
+
+management:
+ endpoints:
+ web:
+ exposure:
+ include: "*"
+ endpoint:
+ logfile:
+ enabled: true
+ external-file: logs/novel.log
+
+ info:
+ env:
+ enabled: true
+ health:
+ rabbit:
+ enabled: false
+ elasticsearch:
+ enabled: false
+
+
---
spring:
config:
diff --git a/src/main/resources/logback-spring.xml b/src/main/resources/logback-spring.xml
index 40569f6..a7883d6 100644
--- a/src/main/resources/logback-spring.xml
+++ b/src/main/resources/logback-spring.xml
@@ -53,26 +53,26 @@
+
+
-
-