yhs0092 commented on a change in pull request #104: 配置注入的文档实现修改 URL: https://github.com/apache/servicecomb-docs/pull/104#discussion_r288012469
########## File path: java-chassis-reference/en_US/config/inject-config.md ########## @@ -63,7 +63,7 @@ We can execute injection with the following sample code: Inject configuration properties into objects without `InjectProperties` and `InjectProperty` annotations: ```Java -ConfigNoAnnotation config = new ConfigObjectFactory().create(ConfigNoAnnotation.class); +ConfigNoAnnotation config = priorityPropertyManager.createConfigObject(ConfigNoAnnotation.class); Review comment: It's better to show how to get the instance of `PriorityPropertyManager`. You can get example from `org.apache.servicecomb.core.definition.OperationMeta#init`, a config object is created here : ) ---------------------------------------------------------------- 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] With regards, Apache Git Services
