mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
perf: 优化配置
This commit is contained in:
parent
3e89d2a363
commit
570ef7e7cb
@ -1,4 +1,4 @@
|
|||||||
#---------------------通用配置-------------------------
|
#--------------------------通用配置-------------------------
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
# 应用名
|
# 应用名
|
||||||
@ -20,8 +20,7 @@ server:
|
|||||||
# 端口号
|
# 端口号
|
||||||
port: 8888
|
port: 8888
|
||||||
|
|
||||||
#---------------------数据库配置-------------------------
|
--- #---------------------数据库配置---------------------------
|
||||||
---
|
|
||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://localhost:3306/novel_test?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
|
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}
|
algorithm-expression: book_content$->{chapter_id % 10}
|
||||||
|
|
||||||
#---------------------中间件配置-------------------------
|
--- #---------------------中间件配置---------------------------
|
||||||
---
|
|
||||||
spring:
|
spring:
|
||||||
data:
|
data:
|
||||||
# Redis 配置
|
# Redis 配置
|
||||||
@ -133,8 +131,7 @@ xxl:
|
|||||||
### xxl-job, access token
|
### xxl-job, access token
|
||||||
accessToken: 123
|
accessToken: 123
|
||||||
|
|
||||||
#---------------------安全配置-------------------------
|
--- #----------------------安全配置----------------------------
|
||||||
---
|
|
||||||
spring:
|
spring:
|
||||||
# Spring Boot 应用管理和监控
|
# Spring Boot 应用管理和监控
|
||||||
boot:
|
boot:
|
||||||
@ -187,7 +184,7 @@ management:
|
|||||||
# 关闭 elasticsearch 的健康检查
|
# 关闭 elasticsearch 的健康检查
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
#---------------------自定义配置-------------------------
|
--- #---------------------自定义配置----------------------------
|
||||||
novel:
|
novel:
|
||||||
# 跨域配置
|
# 跨域配置
|
||||||
cors:
|
cors:
|
||||||
@ -212,22 +209,19 @@ novel:
|
|||||||
path: /Users/xiongxiaoyang/upload
|
path: /Users/xiongxiaoyang/upload
|
||||||
|
|
||||||
|
|
||||||
#----------------------- dev 特定配置-----------------------------
|
--- #------------------- dev 特定配置---------------------------
|
||||||
---
|
|
||||||
spring:
|
spring:
|
||||||
config:
|
config:
|
||||||
activate:
|
activate:
|
||||||
on-profile: dev
|
on-profile: dev
|
||||||
|
|
||||||
#----------------------- test 特定配置-----------------------------
|
--- #------------------- test 特定配置--------------------------
|
||||||
---
|
|
||||||
spring:
|
spring:
|
||||||
config:
|
config:
|
||||||
activate:
|
activate:
|
||||||
on-profile: test
|
on-profile: test
|
||||||
|
|
||||||
#----------------------- prod 特定配置-----------------------------
|
--- #-------------------- prod 特定配置-------------------------
|
||||||
---
|
|
||||||
spring:
|
spring:
|
||||||
config:
|
config:
|
||||||
activate:
|
activate:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user