我有一个 Spring Boot Web 应用程序,当我将其部署到 Tomcat 7.0.54 上的服务器上时,我在 catalina.out 中收到以下消息
INFO: 2 Spring WebApplicationInitializers detected on classpath
我的应用程序部署了两次,导致异常
org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [inbound] with key 'inbound'; nested exception is javax.management.InstanceAlreadyExistsException
但我在本地系统上使用 tomcat 7.0.37 尝试了相同的 war 文件,并且该应用程序运行正常
有什么建议吗?
Thanks.
我遇到过同样的问题。我删除了spring-boot-starter-thymeleaf
从我的pom.xml
文件并且它起作用了。您的家中可能有一个图书馆classpath
其中还有另一个WebApplicationInitializer
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)