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 various Jolokia-specific configuration options via the management.endpoint.jolokia.config.* set of properties. A complete list is available at https://jolokia.org/reference/html/agents.html#agent-war-init-params. In case you would like to use Jolokia, but want to manually set it up, we can tell Spring Boot to ignore its presence by configuring a management.endpoint.jolokia.enabled=false property setting in application.properties.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.152.251