Skip to content

Commit

Permalink
Fixed an issue with using obsolete api, which can't be started in Spr…
Browse files Browse the repository at this point in the history
…ing5.
  • Loading branch information
cjbi committed Sep 4, 2018
1 parent db027c5 commit 54c0243
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@

此分支主要修复使用Spring5和在SpringBoot2.0不能启动的问题。
改动点:
com.baidu.disconf.client.addons.properties.ReloadingPropertyPlaceholderConfigurer第97行:
```java
// then, business as usual. no recursive reloading placeholders please.
return super.parseStringValue(buf.toString(), props, visitedPlaceholders);
```

改为:
```java
// Fixed an issue with using obsolete api, which can't be started in spring5.
// then, business as usual. no recursive reloading placeholders please.PropertyPlaceholderHelper helper = new PropertyPlaceholderHelper(placeholderPrefix, placeholderSuffix, valueSeparator, ignoreUnresolvablePlaceholders);
return helper.replacePlaceholders(strVal, props);
```

--------------------------------------------------------
Disconf
=======

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ protected String parseStringValue(String strVal, Properties props, Set visitedPl
}
}

// then, business as usual. no recursive reloading placeholders please.
// Fixed an issue with using obsolete api, which can't be started in spring5.
PropertyPlaceholderHelper helper = new PropertyPlaceholderHelper(placeholderPrefix, placeholderSuffix, valueSeparator, ignoreUnresolvablePlaceholders);
// then, business as usual. no recursive reloading placeholders please.
return helper.replacePlaceholders(strVal, props);
}

Expand Down

0 comments on commit 54c0243

Please sign in to comment.