From 74355e14088df2c60da6e9a2b026fa0513709de9 Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期一, 17 二月 2025 14:19:45 +0800 Subject: [PATCH] 增加授权认证。 --- smart-man-boot/src/main/resources/application.yml | 43 +++++++++++++------------------------------ 1 files changed, 13 insertions(+), 30 deletions(-) diff --git a/smart-man-boot/src/main/resources/application.yml b/smart-man-boot/src/main/resources/application.yml index 300e259..3f14e1c 100644 --- a/smart-man-boot/src/main/resources/application.yml +++ b/smart-man-boot/src/main/resources/application.yml @@ -17,6 +17,12 @@ name: smartman-api banner: location: classpath:smartbanner.txt + resources: + static-locations: static + thymeleaf: + cache: false + mvc: + static-path-pattern: classpath:/static/** redis: ##redis 鍗曟満鐜閰嶇疆 host: ${redis.host} @@ -275,6 +281,7 @@ - /blade-cps/group/groupWorkstation/jimu - /blade-fms/order/process/issued - /blade-cps/test/** + - /test/* #鎺堟潈璁よ瘉閰嶇疆 auth: - method: ALL @@ -349,36 +356,12 @@ - FlowMapper - SuperNewCollectMapper - -# rocketmq 閰嶇疆椤癸紝瀵瑰簲 RocketMQProperties 閰嶇疆绫� -rocketmq: - name-server: ${rocketmq-name-server} # RocketMQ Namesrv - # Producer 閰嶇疆椤� - producer: - group: masterlink-default-producer-group # 榛樿鐢熶骇鑰呭垎缁勶紝鏈�濂戒娇鐢ㄥ悇鑷槑纭垎缁� - send-message-timeout: 3000 # 鍙戦�佹秷鎭秴鏃舵椂闂达紝鍗曚綅锛氭绉掋�傞粯璁や负 3000 銆� - compress-message-body-threshold: 4096 # 娑堟伅鍘嬬缉闃�鍊硷紝褰撴秷鎭綋鐨勫ぇ灏忚秴杩囪闃�鍊煎悗锛岃繘琛屾秷鎭帇缂┿�傞粯璁や负 4 * 1024B - max-message-size: 4194304 # 娑堟伅浣撶殑鏈�澶у厑璁稿ぇ灏忋�傘�傞粯璁や负 4 * 1024 * 1024B - retry-times-when-send-failed: 2 # 鍚屾鍙戦�佹秷鎭椂锛屽け璐ラ噸璇曟鏁般�傞粯璁や负 2 娆°�� - retry-times-when-send-async-failed: 2 # 寮傛鍙戦�佹秷鎭椂锛屽け璐ラ噸璇曟鏁般�傞粯璁や负 2 娆°�� - retry-next-server: false # 鍙戦�佹秷鎭粰 Broker 鏃讹紝濡傛灉鍙戦�佸け璐ワ紝鏄惁閲嶈瘯鍙﹀涓�鍙� Broker 銆傞粯璁や负 false - enable-msg-trace: true # 鏄惁寮�鍚秷鎭建杩瑰姛鑳姐�傞粯璁や负 true 寮�鍚�� - customized-trace-topic: BLADE_RMQ_SYS_TRACE_TOPIC # 鑷畾涔夋秷鎭建杩圭殑 Topic 銆傞粯璁や负 RMQ_SYS_TRACE_TOPIC 銆� - message: - posting: - workstation-aggregate: - topic: workstation-aggregate-topic - consumer: workstation-aggregate-comsumer ---- - -spring: - resources: - static-locations: static - thymeleaf: - cache: false - mvc: - static-path-pattern: classpath:/static/** - +license: + subject: user #涓讳綋 - 娉ㄦ剰涓讳綋瑕佷笌鐢熸垚璇佷功鐨勪富浣撲竴鑷翠竴鑷达紝涓嶇劧楠岃瘉閫氳繃涓嶄簡 + publicAlias: publiccert #鍏挜鍒О + storePass: a1b2c3 #璁块棶鍏挜搴撶殑瀵嗙爜 + licensePath: D:\lictest\ctest.lic #license浣嶇疆 + publicKeysStorePath: D:\lictest\publicCerts.store #鍏挜浣嶇疆 forest: bean-id: config0 # 鍦╯pring涓婁笅鏂囦腑bean鐨刬d, 榛樿鍊间负forestConfiguration backend: okhttp3 # 鍚庣HTTP API锛� okhttp3 銆愭敮鎸乣okhttp3`/`httpclient`銆� -- Gitblit v1.9.3