Commit 9bb483d6 by naan1993

beetl的配置完善

parent 442c466e
...@@ -27,6 +27,8 @@ public class BeetlProperties { ...@@ -27,6 +27,8 @@ public class BeetlProperties {
private String resourceTagsuffix; private String resourceTagsuffix;
private String resourceAutoCheck;
@Value("${spring.mvc.view.prefix}") @Value("${spring.mvc.view.prefix}")
private String prefix; private String prefix;
...@@ -49,6 +51,9 @@ public class BeetlProperties { ...@@ -49,6 +51,9 @@ public class BeetlProperties {
if(ToolUtil.isNotEmpty(resourceTagsuffix)){ if(ToolUtil.isNotEmpty(resourceTagsuffix)){
properties.setProperty("RESOURCE.tagSuffix",resourceTagsuffix); properties.setProperty("RESOURCE.tagSuffix",resourceTagsuffix);
} }
if(ToolUtil.isNotEmpty(resourceAutoCheck)){
properties.setProperty("RESOURCE.autoCheck",resourceAutoCheck);
}
return properties; return properties;
} }
...@@ -87,4 +92,12 @@ public class BeetlProperties { ...@@ -87,4 +92,12 @@ public class BeetlProperties {
public void setResourceTagsuffix(String resourceTagsuffix) { public void setResourceTagsuffix(String resourceTagsuffix) {
this.resourceTagsuffix = resourceTagsuffix; this.resourceTagsuffix = resourceTagsuffix;
} }
public String getResourceAutoCheck() {
return resourceAutoCheck;
}
public void setResourceAutoCheck(String resourceAutoCheck) {
this.resourceAutoCheck = resourceAutoCheck;
}
} }
...@@ -22,6 +22,7 @@ beetl: ...@@ -22,6 +22,7 @@ beetl:
delimiter-statement-end: null delimiter-statement-end: null
resource-tagroot: common/tags #自定义标签文件Root目录和后缀 resource-tagroot: common/tags #自定义标签文件Root目录和后缀
resource-tagsuffix: tag resource-tagsuffix: tag
resource-auto-check: true #是否检测文件变化,开发用true合适,但线上要改为false
################### spring配置 ################### ################### spring配置 ###################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment