[springboot exception handling] java.lang.NoSuchMethodError: org.springframework.util.Assert.notNull(Ljava/lang/Object;Ljava/util/function

Error at startup:

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)

 

 

Reason: There is a problem with the dependency, and the specific dependency is still uncertain

Solution: Modify the version of spring-boot-starter-parent from 2.0.1.RELEASE to 1.5.2.RELEASE

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325206549&siteId=291194637