ADP4J.zip
AnnotationDrivenPropertiesForJava(ADP4J)是一个在Java对象中使用注解方式来注入配置属性的类库。
示例代码:
publicclassBean{
@SystemProperty("threshold")
privateintthreshold;
@Property(source="myProperties.properties",key="bean.name")
privateStringbeanName;
//gettersandsettersomitted
下载地址
用户评论