Skip to content

Commit

Permalink
#143 : Fixed missing RestartEndpoint bean
Browse files Browse the repository at this point in the history
  • Loading branch information
gazbert committed Feb 23, 2022
1 parent fe52741 commit 14468f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bxbot-rest-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
Expand Down
5 changes: 3 additions & 2 deletions config/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14468f7

Please sign in to comment.