From 1e528f4021ccf0439d10766c64cf6eb641d422dd Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Fri, 13 May 2022 07:27:06 +0800 Subject: [PATCH] =?UTF-8?q?style(application.yml):=20=E5=88=92=E5=88=86?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ca8e1aa..24178c7 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,12 +1,27 @@ +spring: + profiles: + active: dev + + +--- spring: datasource: url: jdbc:mysql://localhost:3306/novel?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai username: root password: test123456 - profiles: - active: dev + config: + activate: + on-profile: dev + + + +--- +spring: redis: host: 127.0.0.1 port: 6379 password: 123456 + config: + activate: + on-profile: dev