From 442600e2cb63f711418b8eb0f4ab8e2b97eb19c9 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 24 Aug 2022 18:38:19 +0800
Subject: [PATCH] fix

---
 src/main/resources/application.yml |   38 ++++++++++++++++++++++++++------------
 1 files changed, 26 insertions(+), 12 deletions(-)

diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index e2ebc6d..7b8065c 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -6,12 +6,24 @@
       timeout: 1
 
 spring:
+  profiles:
+    active: dev
+  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://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
     druid:
       initial-size: ${spring_datasource_druid_initial_size:10}
       max-active: ${spring_datasource_druid_max_active:20}
@@ -74,10 +86,12 @@
 
   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:
@@ -97,9 +111,9 @@
     path: /image/
 
 cms:
-  base-url: http://localhost
-  static-url: http://localhost
-  template-path: /Users/helius/Desktop/template/upload
-  static-path: /Users/helius/Desktop/static
-  output-path: /Users/helius/Desktop/web/output
+  api-url: http://120.27.238.55:8878
+  static-url: http://120.27.238.55:8000/cms/static/
+  template-path: /Users/helius/Desktop/template-online/template
+  static-path: /Users/helius/Desktop/template-online/static
+  output-path: /Users/helius/Desktop/template-online/output
 

--
Gitblit v1.9.1