NutzCN Logo
问答 本来没问题,添加几个全局属性后 就报ioc创建失败,删了还是一样报错
发布于 1571天前 作者 Ichenxx 1681 次浏览 复制 上一个帖子 下一个帖子
标签:

[ERROR] 10:57:25.513 [main] org.nutz.boot.NbApp - something happen!!
org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'
by args: [@(cn)]
because:org.nutz.ioc.IocException: IocBean[$aop_syslog] Duplicate beanName=$aop_syslog, by cn.wizzer.lvche.lvrd.cz.api.commons.slog.SLogAopConfigration !! Have been define by cn.wizzer.app.web.commons.slog.SLogAopConfigration !!
at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:23)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:1022)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:124)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:98)
at org.nutz.boot.NbApp.prepareIocLoader(NbApp.java:418)
at org.nutz.boot.NbApp.prepare(NbApp.java:289)
at org.nutz.boot.NbApp.execute(NbApp.java:201)
at org.nutz.boot.NbApp.run(NbApp.java:182)
at cn.wizzer.lvche.lvrd.cz.api.commons.core.CzApiMainLauncher.main(CzApiMainLauncher.java:32)
Caused by: org.nutz.ioc.IocException: IocBean[$aop_syslog] Duplicate beanName=$aop_syslog, by cn.wizzer.lvche.lvrd.cz.api.commons.slog.SLogAopConfigration !! Have been define by cn.wizzer.app.web.commons.slog.SLogAopConfigration !!
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:93)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.(AnnotationIocLoader.java:53)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader$FC$cbb27cb81b611135eb76831eb9613c85.invoke(AnnotationIocLoader.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:17)
... 9 common frames omitted
断开与目标 VM 的连接,地址:'127.0.0.1:60708', transport: 'socket'

进程已结束,退出代码 0

2 回复

这里报错说我俩个地方都创建同一个名字 但是我分俩个项目 一个项目中应用的另一个项目中的
@Inject
private ShiroUtil shiroUtil;

Caused by: org.nutz.ioc.IocException: IocBean[$aop_syslog] Duplicate beanName=$aop_syslog, by cn.wizzer.lvche.lvrd.cz.api.commons.slog.SLogAopConfigration !! Have been define by cn.wizzer.app.web.commons.slog.SLogAopConfigration !!

是SLogAopConfigration 重复了

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