2015-10-12 12:53:24 DEBUG [http-bio-11098-exec-8] Found mapping for [POST] path=/mvc/account/queryPage : AccountCtrl.queryPage(...)
2015-10-12 12:53:24 DEBUG [http-bio-11098-exec-8] Get 'accountCtrl'<class com.hs.ht.ctrl.admin.AccountCtrl>
2015-10-12 12:53:24 DEBUG [http-bio-11098-exec-8] >> Load definition
2015-10-12 12:53:24
WARN [http-bio-11098-exec-8] Error@/mvc/account/queryPage :
org.nutz.ioc.IocException: For object [accountCtrl] - type:[class com.hs.ht.ctrl.admin.AccountCtrl]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:201)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:212)
at org.nutz.mvc.impl.processor.ModuleProcessor.process(ModuleProcessor.java:92)
at org.nutz.mvc.impl.processor.AbstractProcessor.doNext(AbstractProcessor.java:44)
at org.nutz.mvc.impl.processor.EncodingProcessor.process(EncodingProcessor.java:27)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'accountCtrl' without define!
MainModule是这样写的
@Modules(value=AccountCtrl.class,scanPackage = true)
@IocBy(type = ComboIocProvider.class,
args = {"*org.nutz.ioc.loader.json.JsonLoader",
"config",
// "service.js",
"*org.nutz.ioc.loader.annotation.AnnotationIocLoader",
"com.hs.ht" //整个项目的根路径
})
@SetupBy(MvcSetup.class)