We currently expose more endpoints by default over JMX than we do over the web. For consistency, we've decided to change the default exposure over JMX to align it with the default exposure over the web.
Comment From: kaleev
@mbhave, could you please also fix defaultValue for management.endpoints.jmx.exposure.include in additional-spring-configuration-metadata.json?
Comment From: philwebb
@kaleev I've opened https://github.com/spring-projects/spring-boot/issues/33072
Comment From: gmuth
I understand the idea, however considering that JMX by default is only exposed locally and Web is exposed to remote connections it should be okay to have different default settings IMHO.
This change has an immediate impact on IDEs integrating with spring boot actuators via JMX. Intellij IDEA notifies on application start up about missing endpoint data. Developers now have to explicitly enable those endpoints:
# file: application.properties
# fix IntelliJ IDEA actuator tool issues:
# "Failed to receive 'mappings' endpoint data"
# "Failed to retrieve 'beans' endpoint data"
management.endpoints.jmx.exposure.include=mappings,beans
This should at least be clarified in the reference documentation or/and in the "Migrate to SpringBoot 3.0" documentation.
Comment From: wilkinsona
@gmuth It's already mentioned in the release notes in the "Upgrading from Spring Boot 2.x" section.
Comment From: kaleev
@gmuth it has been already fixed in Intellij IDEA: https://youtrack.jetbrains.com/issue/IDEA-301274 The fix will be included in the upcoming release 2022.3.