2017-08-20 17 views
2

同じTomcatに2つのスプリングブートアプリケーションがデプロイされていて、両方のアプリケーションが同じデータソースを持っています。同じデータソースを持つ複数のSpringBootアプリケーション

I get InstanceAlreadyExistsException: org.apache.tomcat.jdbc.pool.jmx:name=dataSourceMBean,type=Co‌​nnectionPool . 

私はすでに真

endpoints.jmx.domain = myappに
endpoints.jmx.uniqueNames =を設定しています。

しかし、私はまだエラーが発生します。任意の提案

答えて

0
This is how I could solve the problem. 

https://github.com/spring-cloud/spring-cloud-config/issues/118

endpoints.jmx.domain=dev 
endpoints.jmx.unique-names=true 
spring.jmx.default-domain=dev 
spring.application.name=dev 





endpoints.jmx.domain=dev2 
endpoints.jmx.unique-names=true 
spring.jmx.default-domain=dev2 
spring.application.name=dev2 
関連する問題