Skip to content

Commit

Permalink
feat: 设置默认spel解析方式为空
Browse files Browse the repository at this point in the history
  • Loading branch information
huayanYu committed May 21, 2020
1 parent 8800108 commit 4ddfc4d
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,23 @@ public class DsSpelExpressionProcessor extends DsProcessor {
* 设置指定模板 ParserContext.TEMPLATE_EXPRESSION 后的取值方式: #{#param1}
* issues: https://github.com/baomidou/dynamic-datasource-spring-boot-starter/issues/199
*/
private ParserContext parserContext = null;
private ParserContext parserContext = new ParserContext() {

@Override
public boolean isTemplate() {
return false;
}

@Override
public String getExpressionPrefix() {
return null;
}

@Override
public String getExpressionSuffix() {
return null;
}
};

@Override
public boolean matches(String key) {
Expand Down

0 comments on commit 4ddfc4d

Please sign in to comment.