spring不读取application.properties配置信息
因不读取application.properties 配置信息,导致错误信息:
Description:
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
解决方案:
pom中添加如下配置:
src/main/java
/*.yml
/.properties
**/.xml
false
src/main/resources
/*.yml
/.properties
**/.xml
false