Skip to content

Commit ba35531

Browse files
committed
feat(mybatis-xmlreload): 修改readme
1 parent f7d7583 commit ba35531

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
```

src/main/java/io/github/wayn111/mybatis/xmlreload/autoconfiguration/MybatisXmlReloadProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
*/
88
@ConfigurationProperties(prefix = "mybatis-xml-reload")
99
public 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

0 commit comments

Comments
 (0)