【发布时间】:2015-12-15 09:07:27
【问题描述】:
我正在尝试在同一个 tomcat7 实例上部署两个 WAR 文件(app1.war 和 app2.war)。我收到此错误:
Unable to register MBean [HikariDataSource (HikariPool-0)] with key
'dataSource'; nested exception is javax.management.InstanceAlreadyExistsException:
com.zaxxer.hikari:name=dataSource,type=HikariDataSource
如果我在 tomcat 上只部署了一个应用程序,则不会出现此错误。 有没有办法解决这个问题?
【问题讨论】: