From 26d018d32e75438b764f4460cedb212027cec2d4 Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Thu, 20 Oct 2022 23:20:36 +0800
Subject: [PATCH] fix
---
src/main/resources/application-test.yml | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml
index e207ce1..991cf5e 100644
--- a/src/main/resources/application-test.yml
+++ b/src/main/resources/application-test.yml
@@ -6,15 +6,23 @@
timeout: 1
spring:
+ profiles:
+ active: test
mvc:
async:
request-timeout: 20s
datasource:
- url: jdbc:mysql://120.27.238.55:3306/farmer_cms?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
- username: ct_test
- password: 123456
- driver-class-name: com.mysql.jdbc.Driver
- type: com.alibaba.druid.pool.DruidDataSource
+ dynamic:
+ # 是否开启 SQL日志输出,生产环境建议关闭,有性能损耗
+ p6spy: true
+ # 配置默认数据源
+ primary: base
+ datasource:
+ base:
+ url: jdbc:mysql://127.0.0.1:3306/farmer_cms?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
+ username: ct_test
+ password: 123456
+ driver-class-name: com.mysql.cj.jdbc.Driver
druid:
initial-size: ${spring_datasource_druid_initial_size:10}
max-active: ${spring_datasource_druid_max_active:20}
@@ -101,4 +109,4 @@
template-path: /home/javaweb/webresource/cms/template
static-path: /home/javaweb/webresource/cms/static
output-path: /home/javaweb/webresource/cms/output
-
+ download-path: /home/javaweb/webresource/cms/static/download
--
Gitblit v1.9.1