我在使用跳转页面的方法,但是我在加跳转的controller,后就这样了
@IocBean
@At("/public/h5")
@Filters({ @By(type = PrivateFilter.class)})
public class WechatController {
private static final Log log = Logs.get();
/**
*
* @Title: add
* @Description: TODO 跳转前端首页
* @param 参数
* @return void 返回类型
* @throws
*/
@At("/index")
@Ok("beetl:/public/wx/h5/index/index.html")
@RequiresAuthentication
public void index() {
}
}
[ERROR] 2019-03-21 14:56:48,580 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:125) - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.ioc.loader.annotation.AnnotationIocLoader'
by args: [@(cn.wizzer)]
because:org.nutz.ioc.IocException: IocBean[wechatController] Duplicate beanName=wechatController, by cn.wizzer.modules.controllers.front.wx.wechat.WechatController !! Have been define by cn.wizzer.modules.controllers.front.h5.WechatController !!
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:990)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:118)
at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:80)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:381)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4657)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5304)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.nutz.ioc.IocException: IocBean[wechatController] Duplicate beanName=wechatController, by cn.wizzer.modules.controllers.front.wx.wechat.WechatController !! Have been define by cn.wizzer.modules.controllers.front.h5.WechatController !!
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(AnnotationIocLoader.java:96)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(AnnotationIocLoader.java:46)
at org.nutz.ioc.loader.annotation.AnnotationIocLoader$FC$d0275b2b871e237a38f11859247d1599.invoke(AnnotationIocLoader.java)
at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
at org.nutz.lang.born.DynamicConstructorBorning.born(DynamicConstructorBorning.java:17)
... 22 more