From c3aaf28f7316cce12eec007a9f85a96cbcddeec2 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 07 五月 2025 10:34:20 +0800
Subject: [PATCH] 最新版本541200007

---
 server/visits/dmvisit_admin/src/main/resources/application.yml |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/server/visits/dmvisit_admin/src/main/resources/application.yml b/server/visits/dmvisit_admin/src/main/resources/application.yml
index f302ac3..fb04d85 100644
--- a/server/visits/dmvisit_admin/src/main/resources/application.yml
+++ b/server/visits/dmvisit_admin/src/main/resources/application.yml
@@ -9,8 +9,6 @@
 spring:
   application:
     name: visitsAdmin
-  profiles:
-    active: dev
 
   # JSON杩斿洖閰嶇疆
   jackson:
@@ -30,13 +28,13 @@
   mapper-locations: classpath*:/mappers/**/*.xml
   configuration:
     map-underscore-to-camel-case: true
-    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    log-impl: com.doumee.config.mybatis.DmStdOutImpl
 
 # 缂撳瓨鍐呭璁剧疆
 cache:
   session:
     # 浼氳瘽杩囨湡鏃堕暱(s)
-    expire: 18000
+    expire: 1800
   captcha:
     # 楠岃瘉鐮佽繃鏈熸椂闀�(s)
     expire: 300
@@ -56,14 +54,9 @@
 # dao灞傜殑鏃ュ織璁剧疆涓篸ebug锛屾柟渚挎煡鐪媠ql
 logging:
   level:
-    com.doumee.dao: debug
+    com.doumee.dao: info
 
-knife4j:
-  enable: true
-  basic:
-    enable: true
-    username: admin
-    password: 111111
+
 
 # WEB鏈嶅姟鍣ㄩ厤缃�
 server:
@@ -76,5 +69,15 @@
   servlet:
     session:
       timeout: PT3H  #琛ㄧず12灏忔椂
+auth:
+  jwt:
+    enabled: true   #鏄惁寮�鍚疛WT鐧诲綍璁よ瘉鍔熻兘
+    secret: fjkfaf;afa  # JWT绉侀挜锛岀敤浜庢牎楠孞WT浠ょ墝鐨勫悎娉曟��
+    expiration: 1800000 #JWT浠ょ墝鐨勬湁鏁堟湡锛岀敤浜庢牎楠孞WT浠ょ墝鐨勫悎娉曟��
+#    expiration: 300000 #JWT浠ょ墝鐨勬湁鏁堟湡锛岀敤浜庢牎楠孞WT浠ょ墝鐨勫悎娉曟��
+    header: JWTHeaderName #HTTP璇锋眰鐨凥eader鍚嶇О锛岃Header浣滀负鍙傛暟浼犻�扟WT浠ょ墝
+    userParamName: username  #鐢ㄦ埛鐧诲綍璁よ瘉鐢ㄦ埛鍚嶅弬鏁板悕绉�
+    pwdParamName: password  #鐢ㄦ埛鐧诲綍璁よ瘉瀵嗙爜鍙傛暟鍚嶇О
+    useDefaultController: true # 鏄惁浣跨敤榛樿鐨凧wtAuthController
 
 

--
Gitblit v1.9.3