wujimin opened a new pull request #1087: [SCB-638] Config model mechanism
URL: https://github.com/apache/servicecomb-java-chassis/pull/1087
 
 
   support get config value by priority or inject priority value to model
   ```
     @InjectProperties(prefix = "root")
     public static class ConfigWithAnnotation {
       @InjectProperty(prefix = "override", keys = {"high", "low"})
       public String strValue;
   
       @InjectProperty(keys = "${key}.value")
       public int intValue;
   
       @InjectProperty(keys = "${list-1}.a.${list-2}.b")
       public long longValue;
   
       @InjectProperty(keys = "${full-list}")
       public float floatValue;
   }
   ```

----------------------------------------------------------------
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

Reply via email to