[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

猜你喜欢

转载自www.cnblogs.com/chenhao0302/p/8984401.html