Spring boot 2.0 配置报错java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedPropertyRes

 springboot2.0使用的druid版本过低

org.springframework.boot.bind 包已经删掉了,导致RelaxedPropertyResolver这个方法已经不可用了.

API中写到,不再可用了,因为环境会自动处理,去找到这个配置文件

改为最新的版本
 

<!--druid-->
<dependency>
   <groupId>com.alibaba</groupId>
   <artifactId>druid-spring-boot-starter</artifactId>
   <version>1.1.10</version>
</dependency>

https://blog.csdn.net/lklihaikunkun/article/details/79579185

猜你喜欢

转载自blog.csdn.net/m0_37450089/article/details/85321538
今日推荐