url.properties中的配置数据
producer=canoe.url
configuration=dev-service.cashalo.com
conf.js的配置
var ioc = {
conf : {
type : "org.nutz.ioc.impl.PropertiesProxy",
fields : {
paths : [ "custom/db.properties","custom/url.properties"]
}
},
$aop : {
type : 'org.nutz.ioc.aop.config.impl.JsonAopConfigration',
fields : {
itemList : [
['com.oriente.canoe.dao','.+','ioc:daoInterceptor','false']
]
}
}
};
注解
@Inject("java:$conf.get('producer')")
private String producer;
@Inject("java:$conf.get('configuration')")
private String configuration;
producer打印日志显示为null,求解答是什么原因