Why does a default Grails 4 application including Grails 4.0.12 have two entries in the default generated application.xml reference the unique-names attributes. We got this section near the top of the application.xml:
spring:
jmx:
unique-names: true
main:
banner-mode: "off"
and a second one that seem deprecated:
management:
endpoints:
jmx:
unique-names: true
Should this second one be deleted?
CodePudding user response:
The documentation for upgrading to Grails 4 says that the endpoints.jmx.unique-names from Grails 3 has been replace with the new spring.jmx.unique-name.
https://docs.grails.org/latest/guide/upgrading.html#upgrading40x
Still do now understand why it is the default generated application.yml. I am going to create a Grails 4 issue.
CodePudding user response:
Yes, the second should be deleted. The Grails default configuration file (application.yml) is outdated and we are planning to clean it in the upcoming releases.
Meanwhile, I think this should be an issue at Grails Core. Also, would you be interested to send a pull-request at github.com/grails-profiles/base to remove the second value.