File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
src/main/java/io/github/wayn111/mybatis/xmlreload/autoconfiguration Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ mybatis-xmlreload-spring-boot-starter 支持xml文件热更新功能。
2323# 使用
2424通过 maven 公共仓库或者下载本项目源码,在项目pom文件中写入本项目坐标,默认自动启用 xml 热更新功能,想要关闭的话通过设置 ` mybatis.xml-reload.enabled `
2525为 false。配置列表
26- - ` mybatis-xml-reload.enabled ` :是否开启 xml 热更新,true开启,false不开启,默认为true
27- - ` mybatis-xml-reload.mapper-locations ` :xml文件位置,eg: ` classpath*:mapper/**/*Mapper.xml `
28-
26+ ``` yml
27+ mybatis-xml-reload :
28+ # 是否开启 xml 热更新,true开启,false不开启,默认为false
29+ enabled : true
30+ # xml文件位置,eg: `classpath*:mapper/**/*Mapper.xml`
31+ mapper-locations : classpath:mapper/*Mapper.xml
32+ ` ` `
Original file line number Diff line number Diff line change 77 */
88@ ConfigurationProperties (prefix = "mybatis-xml-reload" )
99public class MybatisXmlReloadProperties {
10- private Boolean enabled ;
10+ private boolean enabled ;
1111
1212 private String [] mapperLocations ;
1313
14- public Boolean getEnabled () {
14+ public boolean getEnabled () {
1515 return enabled ;
1616 }
1717
18- public void setEnabled (Boolean enabled ) {
18+ public void setEnabled (boolean enabled ) {
1919 this .enabled = enabled ;
2020 }
2121
You can’t perform that action at this time.
0 commit comments