我想把 properties里的值单独在代码中引用出来,我用
ioc = new NutIoc(new JsonLoader("ioc/dao.js"));
dao = ioc.get(Dao.class);
conf = ioc.get(PropertiesProxy.class); //异常!
为何会异常呢?
Caused by: org.nutz.ioc.ObjectLoadException: Object 'propertiesProxy' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:174)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:180)
... 5 more
另外,我采用Inject方式也不行
@Inject("java:$config.get('stock.day_num_for_check')")
private String day_num_for_check;
返回是空