Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
9bb483d6
Commit
9bb483d6
authored
Jul 07, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beetl的配置完善
parent
442c466e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/main/java/com/stylefeng/guns/config/properties/BeetlProperties.java
+13
-0
src/main/resources/application.yml
+1
-0
No files found.
src/main/java/com/stylefeng/guns/config/properties/BeetlProperties.java
View file @
9bb483d6
...
...
@@ -27,6 +27,8 @@ public class BeetlProperties {
private
String
resourceTagsuffix
;
private
String
resourceAutoCheck
;
@Value
(
"${spring.mvc.view.prefix}"
)
private
String
prefix
;
...
...
@@ -49,6 +51,9 @@ public class BeetlProperties {
if
(
ToolUtil
.
isNotEmpty
(
resourceTagsuffix
)){
properties
.
setProperty
(
"RESOURCE.tagSuffix"
,
resourceTagsuffix
);
}
if
(
ToolUtil
.
isNotEmpty
(
resourceAutoCheck
)){
properties
.
setProperty
(
"RESOURCE.autoCheck"
,
resourceAutoCheck
);
}
return
properties
;
}
...
...
@@ -87,4 +92,12 @@ public class BeetlProperties {
public
void
setResourceTagsuffix
(
String
resourceTagsuffix
)
{
this
.
resourceTagsuffix
=
resourceTagsuffix
;
}
public
String
getResourceAutoCheck
()
{
return
resourceAutoCheck
;
}
public
void
setResourceAutoCheck
(
String
resourceAutoCheck
)
{
this
.
resourceAutoCheck
=
resourceAutoCheck
;
}
}
src/main/resources/application.yml
View file @
9bb483d6
...
...
@@ -22,6 +22,7 @@ beetl:
delimiter-statement-end
:
null
resource-tagroot
:
common/tags
#自定义标签文件Root目录和后缀
resource-tagsuffix
:
tag
resource-auto-check
:
true
#是否检测文件变化,开发用true合适,但线上要改为false
################### spring配置 ###################
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment