简体   繁体   English

在tomcat v 8.5上部署Spring Boot应用程序失败

[英]Deployment of spring boot app failing on tomcat v 8.5

I have application developed in spring boot (v 1.5.9.RELEASE) which is working with tomcat v 7.0 我在Spring Boot(v 1.5.9.RELEASE)中开发了应用程序,该应用程序与Tomcat v 7.0一起使用

I need to upgrade to new version of tomcat v 8.5. 我需要升级到新版本的tomcat v 8.5。 I have installed it ( apache-tomcat-8.5.32) and tried to deploy the same app. 我已经安装了它(apache-tomcat-8.5.32),并尝试部署相同的应用程序。 But I am getting exception while deployment of app. 但是在部署应用程序时出现异常。

Exception is with slf4j and log4j multiple bindings. slf4j和log4j多个绑定例外。 I have started development of my app with Spring Initializr tool ( https://start.spring.io/ ) 我已经开始使用Spring Initializr工具( https://start.spring.io/ )开发应用程序

How can I fix this issue? 如何解决此问题? As I am not aware of which specific dependency causing this issue and where do I need to add exclusion. 由于我不知道是哪个特定的依赖性导致了此问题,因此我需要在哪里添加排除项。 Please help with this. 请帮忙。

Well, AFAIK Spring Boot uses Logback by default rather than SLF4J. 好吧,AFAIK Spring Boot默认使用Logback而不是SLF4J。 So I suspect that's where the multiple bindings issue comes from ( documentation ). 因此,我怀疑这是多重绑定问题的来源( 文档 )。

Your logging should contain a message mentioning what bindings clash, you can use mvn dependency:tree to figure out where it comes from. 您的日志记录中应包含一条消息,说明绑定发生冲突的原因,您可以使用mvn dependency:tree找出其来源。 Also see this and this answer. 也看到这个这个答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM