org.springframework.jmx.export.UnableToRegisterMBeanException
Sever 2018. 4. 30. 16:54With spring.jmx.enabled
set to true
(the default), any beans in the context that are MBeans will be automatically registered with the JMX server. This fails because Tomcat has already registered them. You have a few options:
- Set
spring.jmx.enabled=false
- Exclude the bean from being exported as we do in our own JNDI DataSource configuration
- Use
application.properties
and@Bean
methods to configure your data sources directly rather than using JNDI
In the future, please ask this sort of question on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements.
'Sever' 카테고리의 다른 글
[Spring Boot] org.apache.jasper.JasperException (0) | 2018.04.30 |
---|---|
spring-boot-jdbc-example#example (study-login) (0) | 2018.04.30 |
MySQL 원격 접속 허용 (0) | 2018.04.28 |
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException (0) | 2018.04.25 |
Eclipse Javascript Code Assist 가 되지 않을때 (0) | 2015.07.31 |