jeudi 19 février 2015

Disabling JMX in a spring application

I'm trying to disable jmx so that i don't get org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mbeanExporter'anymore.


I've found a partial answer saying that I should include this in the application.properties file:


spring.datasource.jmx-enabled=false


So I created the file with that one line. But how do I make sure that Spring acutally reads it? Do I need to edit something in spring.xml? If so, where?


Please treat me as a total newcommer in your answer. Thank you!


Aucun commentaire:

Enregistrer un commentaire