[springboot异常处理] java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/function


启动时报错:

11:09:05.540 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/function/Supplier;)V
at org.springframework.boot.convert.StringToEnumIgnoringCaseConverterFactory.getConverter(StringToEnumIgnoringCaseConverterFactory.java:42)
at org.springframework.core.convert.support.GenericConversionService$ConverterFactoryAdapter.matches(GenericConversionService.java:423)

 

 

原因:依赖存在问题,具体哪个依赖还不确定

解决方法:将 spring-boot-starter-parent的版本修改后可以了,从2.0.1.RELEASE修改为了1.5.2.RELEASE


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM