From 2b0c4acfa12a00c0df3398e5f523980bca45cd40 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 12 八月 2021 13:53:58 +0800 Subject: [PATCH] add 增加 admin 监控客户端开关 --- ruoyi-admin/src/main/resources/application-dev.yml | 20 +++++--------------- 1 files changed, 5 insertions(+), 15 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application-dev.yml b/ruoyi-admin/src/main/resources/application-dev.yml index 6491c85..6729b5f 100644 --- a/ruoyi-admin/src/main/resources/application-dev.yml +++ b/ruoyi-admin/src/main/resources/application-dev.yml @@ -4,7 +4,9 @@ type: com.alibaba.druid.pool.DruidDataSource # 鍔ㄦ�佹暟鎹簮鏂囨。 https://www.kancloud.cn/tracy5546/dynamic-datasource/content dynamic: - #璁剧疆榛樿鐨勬暟鎹簮鎴栬�呮暟鎹簮缁�,榛樿鍊煎嵆涓� master + # 鎬ц兘鍒嗘瀽鎻掍欢(鏈夋�ц兘鎹熻�� 涓嶅缓璁敓浜х幆澧冧娇鐢�) + p6spy: true + # 璁剧疆榛樿鐨勬暟鎹簮鎴栬�呮暟鎹簮缁�,榛樿鍊煎嵆涓� master primary: master datasource: # 涓诲簱鏁版嵁婧� @@ -122,26 +124,14 @@ admin: # Spring Boot Admin Client 瀹㈡埛绔殑鐩稿叧閰嶇疆 client: + # 澧炲姞瀹㈡埛绔紑鍏� + enabled: true # 璁剧疆 Spring Boot Admin Server 鍦板潃 url: http://localhost:9090/admin instance: prefer-ip: true # 娉ㄥ唽瀹炰緥鏃讹紝浼樺厛浣跨敤 IP username: ruoyi password: 123456 - -# Actuator 鐩戞帶绔偣鐨勯厤缃」 -management: - endpoints: - web: - # Actuator 鎻愪緵鐨� API 鎺ュ彛鐨勬牴鐩綍銆傞粯璁や负 /actuator - base-path: /actuator - exposure: - # 闇�瑕佸紑鏀剧殑绔偣銆傞粯璁ゅ�煎彧鎵撳紑 health 鍜� info 涓や釜绔偣銆傞�氳繃璁剧疆 * 锛屽彲浠ュ紑鏀炬墍鏈夌鐐广�� - # 鐢熶骇鐜涓嶅缓璁斁寮�鎵�鏈� 鏍规嵁椤圭洰闇�姹傛斁寮�鍗冲彲 - include: '*' - endpoint: - logfile: - external-file: ./logs/sys-console.log --- # OSS 浜戝瓨鍌�(鐣岄潰 <鍙傛暟璁剧疆> 鍙垏鎹�) cloud-storage: -- Gitblit v1.9.3