Two solutions:
The first to disable hot loading
This in pom.xml can be left unchanged

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

The corresponding property of application.properties configuration is false
spring.devtools.restart.enabled=false

The second solution is

Just set application.properties
mybatis.mapperLocations=classpath*:mapper/*.xml
Use classpath *: replace the previous classpath: to tell spring to find all classpaths

www.programmersought.com/article/35593774017/



 

Posted by 張's blog
,