<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
@SpringBootApplication
@MapperScan(basePackages = "com.qwl.vhr.mapper")
public class VhrApplication {
public static void main(String[] args) {
SpringApplication.run(VhrApplication.class, args);
}
}
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql:///vhr?useUnicode=true&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=root
原文:https://www.cnblogs.com/qiuwenli/p/13435537.html