Given the information as follows:
The reason: When setting up the framework SpringBoot IDEA, no files are compiled into the application.yml. When the re-referenced eclipse maven project, when the project started, this problem also occurs in the IDEA start.
solution:
In pom file, add the following code.
<!-- 如果mapper.xml是放在src/main/resources目录下,需配置以下-->
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>