fix: The repeated creation of PolarisPropertySourceManager results in the failure of configuration refresh. (#1643)

shedfreewu 2 months ago committed by GitHub
parent ec2837be3f
commit 13fb401577
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -26,3 +26,4 @@
- fix:fix restTemplateCustomizer bean conflict causing service to fail to start properly.
- fix:fix NullPointerException when properties contain kv with null value.
- fix: upgrade polaris java to 1.15.8
- [fix: The repeated creation of PolarisPropertySourceManager results in the failure of configuration refresh.](https://github.com/Tencent/spring-cloud-tencent/pull/1643)

@ -89,7 +89,7 @@
<properties>
<!-- Project revision -->
<revision>1.13.3-2021.0.9</revision>
<revision>1.13.4-2021.0.9</revision>
<!-- Spring Framework -->
<spring.framework.version>5.3.31</spring.framework.version>

@ -30,10 +30,10 @@ import java.util.concurrent.ConcurrentHashMap;
*/
public class PolarisPropertySourceManager {
private final Map<String, PolarisPropertySource> polarisPropertySources = new ConcurrentHashMap<>();
private static final Map<String, PolarisPropertySource> polarisPropertySources = new ConcurrentHashMap<>();
public void addPropertySource(PolarisPropertySource polarisPropertySource) {
polarisPropertySources.putIfAbsent(polarisPropertySource.getPropertySourceName(), polarisPropertySource);
polarisPropertySources.put(polarisPropertySource.getPropertySourceName(), polarisPropertySource);
}
public List<PolarisPropertySource> getAllPropertySources() {

@ -70,7 +70,7 @@
</developers>
<properties>
<revision>1.13.3-2021.0.9</revision>
<revision>1.13.4-2021.0.9</revision>
<!-- Dependencies -->
<polaris.version>1.15.8</polaris.version>

Loading…
Cancel
Save