记录一次自己创建spring-boot项目并发布时遇到的问题
报错:
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.xml文件添加如下配置没有加载到我们的application.yml配置文件
<resource> <directory>src/main/java</directory> <includes> <include>**/*.yml</include> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.yml</include> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>false</filtering> </resource> <resource> <directory>lib</directory> <includes> <include>**/*.jar</include> </includes> </resource> </resources>