File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ mybatis-xmlreload-spring-boot-starter 支持xml文件热更新功能。
10
10
- 修改 xml 文件的加载逻辑。在普通的 mybatis-spring 项目中,默认只会加载项目编译过后的 xml 文件,也就是 target 目录下的 xml 文件。但是在mybatis-xmlreload-spring-boot-starter中,修改了这一点,它会加载 Maven 项目中 resources 或者 java 目录下的 xml 文件,这样用户对于 resources 或者 java 目录下 xml 文件的修改操作是可以立即触发热加载的。
11
11
- 通过 io.methvin.directory-watcher 项目来监听 xml 文件的修改操作,它底层是通过 java.nio 的WatchService 来实现,当我们监听了整个 resources 目录后,xml 文件的修改会立马触发 MODIFY 事件。
12
12
- 通过 mybatis-spring 项目原生的 xmlMapperBuilder.parse() 方法重新加载解析修改过后的 xml 文件来保证项目对于 Mybatis 的兼容性处理。
13
- - 兼容 mybatis plus。
14
13
15
14
# 兼容
16
- 在 ` Spring Boot ` 项目中,兼容 ` mybatis-spring-boot-starter ` 2.0及以上版本。
15
+ - 在 ` Spring Boot ` 项目中,兼容 ` mybatis-spring-boot-starter ` 2.0及以上版本。
16
+ - 兼容 ` mybatis plus ` 。
17
17
18
18
# 安装
19
19
mybatis-xmlreload-spring-boot-starter在 Maven 项目提供坐标地址如下:
You can’t perform that action at this time.
0 commit comments