集成第三方框架,报错NoSuchFieldError:logger

logger项目中使用springboot的版本是2.0.1.RELEASE,该版本依赖的spring版本为5.0.5.RELEASE

(logger在spring版本5.0.7.RELEASE中),在项目中添加对应的spring-beans版本,问题解决了。

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-beans</artifactId>
    <version>5.0.5.RELEASE</version>
    <scope>compile</scope>
</dependency>

 




原文地址:https://www.cnblogs.com/archimedes-euler/p/9975535.html