Springboot devtools hot deployment Mybatis error: Could not load [mapper /]
spring-boot 2021. 3. 20. 21:04
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/
'spring-boot' 카테고리의 다른 글
spring-boot 2.4 변경사항 (0) | 2021.07.25 |
---|---|
spring boot web 설정 참고 (0) | 2021.05.17 |
Reached the maximum number of URI tags for 'http.client.requests' (0) | 2020.11.18 |
XssFilter & lucy-xssFilter 적용 (0) | 2020.10.04 |
Image to Base64 String Conversion (0) | 2020.09.24 |