perf: 优化配置

This commit is contained in:
xiongxiaoyang 2022-08-19 20:33:00 +08:00
parent 3e89d2a363
commit 570ef7e7cb

View File

@ -1,4 +1,4 @@
#---------------------通用配置-------------------------
#--------------------------通用配置-------------------------
spring:
application:
# 应用名
@ -20,8 +20,7 @@ server:
# 端口号
port: 8888
#---------------------数据库配置-------------------------
---
--- #---------------------数据库配置---------------------------
spring:
datasource:
url: jdbc:mysql://localhost:3306/novel_test?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
@ -81,8 +80,7 @@ spring:
# 分片算法的行表达式
algorithm-expression: book_content$->{chapter_id % 10}
#---------------------中间件配置-------------------------
---
--- #---------------------中间件配置---------------------------
spring:
data:
# Redis 配置
@ -133,8 +131,7 @@ xxl:
### xxl-job, access token
accessToken: 123
#---------------------安全配置-------------------------
---
--- #----------------------安全配置----------------------------
spring:
# Spring Boot 应用管理和监控
boot:
@ -187,7 +184,7 @@ management:
# 关闭 elasticsearch 的健康检查
enabled: false
#---------------------自定义配置-------------------------
--- #---------------------自定义配置----------------------------
novel:
# 跨域配置
cors:
@ -212,22 +209,19 @@ novel:
path: /Users/xiongxiaoyang/upload
#----------------------- dev 特定配置-----------------------------
---
--- #------------------- dev 特定配置---------------------------
spring:
config:
activate:
on-profile: dev
#----------------------- test 特定配置-----------------------------
---
--- #------------------- test 特定配置--------------------------
spring:
config:
activate:
on-profile: test
#----------------------- prod 特定配置-----------------------------
---
--- #-------------------- prod 特定配置-------------------------
spring:
config:
activate: