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=* +