From 90f9311b8f92d84533860e374c2a38c16f8a6e7d Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 30 Aug 2022 18:01:27 +0800
Subject: [PATCH] fix

---
 src/main/resources/application-test.yml |   29 +++++++++++++++++++----------
 1 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml
index 7378a63..f3690cc 100644
--- a/src/main/resources/application-test.yml
+++ b/src/main/resources/application-test.yml
@@ -6,12 +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: false
+      # 配置默认数据源
+      primary: base
+      datasource:
+        base:
+          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.cj.jdbc.Driver
     druid:
       initial-size: ${spring_datasource_druid_initial_size:10}
       max-active: ${spring_datasource_druid_max_active:20}
@@ -74,12 +85,10 @@
 
   servlet:
     multipart:
-      max-file-size: 5MB
-      max-request-size: 100MB
+      max-file-size: 512MB
+      max-request-size: 512MB
 mybatis-plus:
   mapper-locations: classpath:mapper/*.xml
-  configuration:
-    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 
 
 app:
@@ -95,7 +104,7 @@
     path: /home/javaweb/webresource/uploadeFile/image/
 
 cms:
-  base-url: http://120.27.238.55:8000/cms/output
+  api-url: http://120.27.238.55:8878
   static-url: http://120.27.238.55:8000/cms/static/
   template-path: /home/javaweb/webresource/cms/template
   static-path: /home/javaweb/webresource/cms/static

--
Gitblit v1.9.1