springboot2.0使用的druid版本过低
org.springframework.boot.bind 包已经删掉了,导致RelaxedPropertyResolver这个方法已经不可用了.
API中写到,不再可用了,因为环境会自动处理,去找到这个配置文件
改为最新的版本
com.alibaba druid-spring-boot-starter 1.1.10
Spring boot 2.0 配置报错java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedPropertyRes_lklihaikunkun的博客-CSDN博客