From 665700d03ff0cdb5dc751da483c624b4cabb62f6 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 28 Jul 2020 14:35:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(deps):=20=E5=A2=9E=E5=8A=A0actuator?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=9C=8D=E5=8A=A1=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes 156 --- backend/pom.xml | 5 +++++ backend/src/main/java/io/metersphere/Application.java | 6 +++++- backend/src/main/resources/application.properties | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/backend/pom.xml b/backend/pom.xml index 3ab3754b2b..3fa8e2a12d 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -44,6 +44,11 @@ spring-boot-starter + + org.springframework.boot + spring-boot-starter-actuator + + org.springframework.boot spring-boot-starter-test diff --git a/backend/src/main/java/io/metersphere/Application.java b/backend/src/main/java/io/metersphere/Application.java index 5c697419a6..3e9715e775 100644 --- a/backend/src/main/java/io/metersphere/Application.java +++ b/backend/src/main/java/io/metersphere/Application.java @@ -4,13 +4,17 @@ import io.metersphere.config.JmeterProperties; import io.metersphere.config.KafkaProperties; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration; import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.boot.web.servlet.ServletComponentScan; import org.springframework.context.annotation.PropertySource; import org.springframework.scheduling.annotation.EnableScheduling; -@SpringBootApplication(exclude = {QuartzAutoConfiguration.class}) +@SpringBootApplication(exclude = { + QuartzAutoConfiguration.class, + LdapAutoConfiguration.class +}) @ServletComponentScan @EnableConfigurationProperties({ KafkaProperties.class, diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties index 4a02c75933..6ca797fc77 100644 --- a/backend/src/main/resources/application.properties +++ b/backend/src/main/resources/application.properties @@ -74,3 +74,7 @@ quartz.scheduler-name=msServerJob spring.servlet.multipart.max-file-size=30MB spring.servlet.multipart.max-request-size=30MB +# actuator +management.server.port=8083 +management.endpoints.web.exposure.include=* +