Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSource'

后端 未结 7 1832
盖世英雄少女心
盖世英雄少女心 2021-02-01 03:21

I am getting below error in prod mode for (Java8+Oauth2+MySql+Hazelcast+no clustered http sessions) combination. Dev mode has worked fine.

Unable to register MBe         


        
7条回答
  •  孤城傲影
    2021-02-01 03:33

    I solved this kind of problem by setting different value of spring.jmx.default-domain property for each Spring applications on my Tomcat like:

    spring.jmx.default-domain=somevalue
    

    in application.properties file.

提交回复
热议问题