mybatis.xml 热部署
springboot 项目实现xml热部署
首先,引入maven
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-boot-starter</artifactId>
<version>1.4.5</version>
</dependency>
修改配置文件:
mybatis:
mapper:
reload:
enable: true
mapper-location: classpath*:/mapper/**/*.xml