wujimin commented on a change in pull request #1069: [SCB-781]add
ConfigurationProperties support for spring boot
URL:
https://github.com/apache/servicecomb-java-chassis/pull/1069#discussion_r250019649
##########
File path:
foundations/foundation-config/src/main/java/org/apache/servicecomb/config/ConfigurationSpringInitializer.java
##########
@@ -63,6 +66,22 @@ public void setEnvironment(Environment environment) {
ConfigUtil.addExtraConfig(EXTRA_CONFIG_SOURCE_PREFIX + environmentName,
extraConfig);
ConfigUtil.installDynamicConfig();
+
+ setUpSpringPropertySource(environment);
+ }
+
+ private void setUpSpringPropertySource(Environment environment) {
+ ConfigCenterConfigurationSource configCenterConfigurationSource =
Review comment:
only add cc configuration to environment cause ConfigurationProperties can
not read configuration from microservice.yaml
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services