Developing Java Applications with Spring and Spring Boot
by Claudio Eduardo de Oliveira, Greg L. Turnquist, Alex Antonov
How it works...
By default, the Spring Boot Actuator, when added to the application, comes with all the endpoints and management services enabled. This includes the JMX access as well. If, for some reason, one would like to disable the exposure of a particular endpoint via JMX, this can easily be configured by adding management.endpoints.jmx.exclude=<id> or in order to disable the exporting of all the Spring MBeans, we can configure the spring.jmx.enabled=false setting in application.properties.
The presence of the Jolokia library in the classpath triggers Spring Boot JolokiaManagementContextConfiguration, which would automatically configure ServletRegistrationBean accepting requests on the /jolokia actuator path. It is also possible to set ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access