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