diff --git a/bxbot-rest-api/pom.xml b/bxbot-rest-api/pom.xml index 1119d558..3ecb8ac9 100644 --- a/bxbot-rest-api/pom.xml +++ b/bxbot-rest-api/pom.xml @@ -58,6 +58,10 @@ + + org.springframework.boot + spring-boot-starter-actuator + org.springframework.boot spring-boot-starter-log4j2 diff --git a/config/application.properties b/config/application.properties index 6d6713e9..102210fd 100644 --- a/config/application.properties +++ b/config/application.properties @@ -20,8 +20,9 @@ management.address=127.0.0.1 # Spring Boot seems to need this to initialise logging successfully. logging.config=./config/log4j2.xml -# Disable JMX - not needed. -spring.jmx.enabled=false +# Enable JMX - it is needed expose the Spring Cloud RestartEndpoint since Boot 2.2.x :-/ +# See: https://github.com/spring-cloud/spring-cloud-commons/issues/710 +spring.jmx.enabled=true ############################################################################### # REST API configuration