From af5436c6fba777f6e8cd649c3e251cb5df568439 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 25 十一月 2024 09:36:37 +0800
Subject: [PATCH] 移除actuator依赖
---
ruoyi-extend/ruoyi-monitor-admin/src/main/java/org/dromara/monitor/admin/config/SecurityConfig.java | 4 +---
ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties | 6 ------
ruoyi-common/ruoyi-common-web/pom.xml | 5 -----
ruoyi-extend/ruoyi-monitor-admin/src/main/resources/application.yml | 12 ------------
ruoyi-admin/src/main/resources/application.yml | 14 --------------
ruoyi-admin/src/main/resources/application-dev.yml | 6 +++---
6 files changed, 4 insertions(+), 43 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/application-dev.yml b/ruoyi-admin/src/main/resources/application-dev.yml
index d31c6b9..0eb547f 100644
--- a/ruoyi-admin/src/main/resources/application-dev.yml
+++ b/ruoyi-admin/src/main/resources/application-dev.yml
@@ -43,9 +43,9 @@
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 鎵�鏈夊弬鏁伴厤缃弬鑰� https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 鎵瑰鐞嗕紭鍖� 澶у箙鎻愬崌鎵归噺鎻掑叆鏇存柊鍒犻櫎鎬ц兘(瀵规暟鎹簱鏈夋�ц兘鎹熻�� 浣跨敤鎵归噺鎿嶄綔搴旇�冭檻鎬ц兘闂)
- url: jdbc:mysql://101.35.247.188:3306/qysp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
+ url: jdbc:mysql://127.0.0.1:3306/qysp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
username: root
- password: ycl@202466
+ password: 123456
# 浠庡簱鏁版嵁婧�
slave:
lazy: true
@@ -99,7 +99,7 @@
host: 127.0.0.1
# 绔彛锛岄粯璁や负6379
port: 6379
- password: 234#Wersdf!
+# password: 234#Wersdf!
# 鏁版嵁搴撶储寮�
database: 0
# 瀵嗙爜(濡傛病鏈夊瘑鐮佽娉ㄩ噴鎺�)
diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml
index 1a323d9..dd9f491 100644
--- a/ruoyi-admin/src/main/resources/application.yml
+++ b/ruoyi-admin/src/main/resources/application.yml
@@ -120,9 +120,6 @@
# swagger 鏂囨。閰嶇疆
- /*/api-docs
- /*/api-docs/**
- # actuator 鐩戞帶閰嶇疆
- - /actuator
- - /actuator/**
# 澶氱鎴烽厤缃�
tenant:
@@ -245,17 +242,6 @@
# 鍒嗗竷寮忛攣鐨勮秴鏃舵椂闂达紝榛樿涓� 30 绉�
expire: 30000
---- # Actuator 鐩戞帶绔偣鐨勯厤缃」
-management:
- endpoints:
- web:
- exposure:
- include: '*'
- endpoint:
- health:
- show-details: ALWAYS
- logfile:
- external-file: ./logs/sys-console.log
--- # websocket
websocket:
diff --git a/ruoyi-common/ruoyi-common-web/pom.xml b/ruoyi-common/ruoyi-common-web/pom.xml
index 293c522..cd6bb86 100644
--- a/ruoyi-common/ruoyi-common-web/pom.xml
+++ b/ruoyi-common/ruoyi-common-web/pom.xml
@@ -44,11 +44,6 @@
</dependency>
<dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- </dependency>
-
- <dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-captcha</artifactId>
</dependency>
diff --git a/ruoyi-extend/ruoyi-monitor-admin/src/main/java/org/dromara/monitor/admin/config/SecurityConfig.java b/ruoyi-extend/ruoyi-monitor-admin/src/main/java/org/dromara/monitor/admin/config/SecurityConfig.java
index 3f5dec8..3458cc9 100644
--- a/ruoyi-extend/ruoyi-monitor-admin/src/main/java/org/dromara/monitor/admin/config/SecurityConfig.java
+++ b/ruoyi-extend/ruoyi-monitor-admin/src/main/java/org/dromara/monitor/admin/config/SecurityConfig.java
@@ -39,9 +39,7 @@
.authorizeHttpRequests((authorize) ->
authorize.requestMatchers(
new AntPathRequestMatcher(adminContextPath + "/assets/**"),
- new AntPathRequestMatcher(adminContextPath + "/login"),
- new AntPathRequestMatcher("/actuator"),
- new AntPathRequestMatcher("/actuator/**")
+ new AntPathRequestMatcher(adminContextPath + "/login")
).permitAll()
.anyRequest().authenticated())
.formLogin((formLogin) ->
diff --git a/ruoyi-extend/ruoyi-monitor-admin/src/main/resources/application.yml b/ruoyi-extend/ruoyi-monitor-admin/src/main/resources/application.yml
index 1b729ef..91645f8 100644
--- a/ruoyi-extend/ruoyi-monitor-admin/src/main/resources/application.yml
+++ b/ruoyi-extend/ruoyi-monitor-admin/src/main/resources/application.yml
@@ -21,18 +21,6 @@
title: RuoYi-Vue-Plus鏈嶅姟鐩戞帶涓績
context-path: /admin
---- # Actuator 鐩戞帶绔偣鐨勯厤缃」
-management:
- endpoints:
- web:
- exposure:
- include: '*'
- endpoint:
- health:
- show-details: ALWAYS
- logfile:
- external-file: ./logs/ruoyi-monitor-admin.log
-
--- # 鐩戞帶閰嶇疆
spring.boot.admin.client:
# 澧炲姞瀹㈡埛绔紑鍏�
diff --git a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
index dc2cdf3..577860f 100644
--- a/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
+++ b/ruoyi-extend/ruoyi-powerjob-server/src/main/resources/application.properties
@@ -27,9 +27,3 @@
# Actuator 鐩戞帶绔偣鐨勯厤缃」
spring.application.name: ruoyi-powerjob-server
-management.server.port=-1
-management.endpoints.enabled-by-default=false
-management.endpoints.web.exposure.include=*
-management.endpoint.health.show-details=ALWAYS
-management.endpoint.logfile.external-file=./logs/ruoyi-powerjob-server.log
-management.health.mongo.enabled=${oms.mongodb.enable}
--
Gitblit v1.8.0