java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.SimpleLoggerFactory loaded from file:/opt/tomcat/apache-tomcat-9.0.44/webapps/yunnanforest/WEB-INF/lib/slf4j-simple-1.7.28.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.SimpleLoggerFactory
用IDE能正常启动,部署到tomcat下就报slf4j错误。
解决办法:
Bean 在使用Lombok的时候依赖了slf4j.
我的就是有一个bean在创建的时候注解了@data但是却没有配
@TableName
加上@TableName就ok了。