From 570ef7e7cb421427556b374472604f40f7cc50a9 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <1179705413@qq.com> Date: Fri, 19 Aug 2022 20:33:00 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 6c8beae..f671caf 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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: