Fix:fix javadoc (#721)

Co-authored-by: Haotian Zhang <928016560@qq.com>
pull/730/head
lingxiao,wu 2 years ago committed by GitHub
parent fe2155b57c
commit c550d0ac9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,5 +12,6 @@
- [Test:support environment variable metadata test](https://github.com/Tencent/spring-cloud-tencent/pull/698)
- [Test: remote deprecated method in test](https://github.com/Tencent/spring-cloud-tencent/pull/706)
- [docs:update README.](https://github.com/Tencent/spring-cloud-tencent/pull/718)
- [Fix:fix javadoc.](https://github.com/Tencent/spring-cloud-tencent/pull/721)
- [Code optimization & correct comment](https://github.com/Tencent/spring-cloud-tencent/pull/722)
- [fix:fix discovery junit.](https://github.com/Tencent/spring-cloud-tencent/pull/725)

@ -81,6 +81,7 @@ public final class PolarisConfigFilePuller {
*
* @param compositePropertySource compositePropertySource
* @param activeProfiles activeProfiles
* @param defaultProfiles defaultProfiles
* @param serviceName serviceName
*/
public void initInternalConfigFiles(CompositePropertySource compositePropertySource, String[] activeProfiles,

@ -52,7 +52,6 @@ import static org.springframework.boot.context.config.ConfigData.Option.PROFILE_
* Load {@link ConfigData} via {@link PolarisConfigDataLoader}
*
* @author wlx
* @date 2022/7/5 11:14 PM
*/
public class PolarisConfigDataLoader implements ConfigDataLoader<PolarisConfigDataResource> {

@ -30,7 +30,6 @@ import org.springframework.boot.context.config.Profiles;
* A polaris configData resource from which {@link ConfigData} can be loaded.
*
* @author wlx
* @date 2022/7/5 11:13 PM
*/
public class PolarisConfigDataResource extends ConfigDataResource {

@ -52,7 +52,7 @@ public class PlaceholderHelper {
* @param beanFactory beanFactory
* @param beanName beanName
* @param placeholder placeholder
* @return "${somePropertyValue}" -> "the actual property value"
* @return "${somePropertyValue}" -&gt; "the actual property value"
*/
public Object resolvePropertyValue(ConfigurableBeanFactory beanFactory, String beanName, String placeholder) {
// resolve string value
@ -77,16 +77,16 @@ public class PlaceholderHelper {
}
/**
*
* @param propertyString propertyString
* @return
* Extract keys from placeholder, e.g.
* <li>${some.key} => "some.key"</li>
* <li>${some.key:${some.other.key:100}} => "some.key", "some.other.key"</li>
* <li>${${some.key}} => "some.key"</li>
* <li>${${some.key:other.key}} => "some.key"</li>
* <li>${${some.key}:${another.key}} => "some.key", "another.key"</li>
* <li>#{new java.text.SimpleDateFormat('${some.key}').parse('${another.key}')} => "some.key", "another.key"</li>
* @return Extract keys from placeholder, e.g.
* <ul>
* <li>${some.key} =&gt; "some.key"</li>
* <li>${some.key:${some.other.key:100}} =&gt; "some.key", "some.other.key"</li>
* <li>${${some.key}} =&gt; "some.key"</li>
* <li>${${some.key:other.key}} =&gt; "some.key"</li>
* <li>${${some.key}:${another.key}} =&gt; "some.key", "another.key"</li>
* <li>#{new java.text.SimpleDateFormat('${some.key}').parse('${another.key}')} =&gt; "some.key", "another.key"</li>
* </ul>
*/
public Set<String> extractPlaceholderKeys(String propertyString) {
Set<String> placeholderKeys = Sets.newHashSet();

@ -5,7 +5,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author wlx
* @date 2022/7/6 9:15 PM
*/
@SpringBootApplication
public class PolarisConfigDataExampleApplication {

Loading…
Cancel
Save