1检查路径
2检查yml格式
3idea或者其他ide中没有读取到配置文件
解决办法可以在父项目pom中加一段:
org.springframework.boot spring-boot-maven-plugin true true
4缺少druid依赖注入
解决:配置在application-dev读取不到,移到application
1检查路径
2检查yml格式
3idea或者其他ide中没有读取到配置文件
解决办法可以在父项目pom中加一段:
org.springframework.boot spring-boot-maven-plugin true true
4缺少druid依赖注入
解决:配置在application-dev读取不到,移到application