develpoerX opened a new issue #2349:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2349


   问题描述:
      微服务配置文件microservice.yaml文件中配置项参数值中存在逗号时,解析成数组。eg:在配置文件中写:
   hello:
       sayHelloPrefix: "Hello, ft"
   
使用DynamicPropertyFactory.getInstance().getStringproperty(“hello.sayHelloPrefix”,
 
"")时,获取到的结果为Hello,ft,中间空格被删除。通过定位发现,配置文件参数值,在传递过程中,会经过com.netflix.config包中的ConcurrentMapConfiguration.java文件中的addPropertyImpl(String
 key, Object value)解析时,默认将value中的逗号解析成数组的形式。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to