+解析逻辑
This commit is contained in:
parent
4f99e261d8
commit
430ad497df
@ -137,6 +137,9 @@ public class PlaceholderResolver {
|
||||
StringBuilder result = new StringBuilder(content);
|
||||
while (start != -1) {
|
||||
int end = result.indexOf(this.placeholderSuffix, start);
|
||||
if(end == -1){
|
||||
return result.toString();
|
||||
}
|
||||
//获取占位符属性值,如${id}, 即获取id
|
||||
String placeholder = result.substring(start + this.placeholderPrefix.length(), end);
|
||||
//替换整个占位符内容,即将${id}值替换为替换规则回调中的内容
|
||||
|
||||
Loading…
Reference in New Issue
Block a user