You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/02/03 07:44:39 UTC

[GitHub] wujimin opened a new pull request #1087: [SCB-638] Config model mechanism

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:
users@infra.apache.org


With regards,
Apache Git Services