NutzCN Logo
问答 Caused by: org.nutz.ioc.ObjectLoadException: Object 'accountCtrl' without define! controller找不到的错误
发布于 3359天前 作者 qq_6d1ec279 3222 次浏览 复制 上一个帖子 下一个帖子
标签:

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)

1 回复

看启动的日志, 里面有显示扫描到哪里bean, 定义为什么名称

http://nutzbook.wendal.net/logsystem/log_ioc.html

添加回复
请先登陆
回到顶部