NutzCN Logo
问答 新人请问微信测试公众号,跳转页面一直报错404
发布于 38天前 作者 wx_kotog7aqgrh63sid1trl 123 次浏览 复制 上一个帖子 下一个帖子
标签:

@IocBean
@At("/weixin")
public class WeixinModule {

protected WxHandler wxHandler = new BasicWxHandler("1234567890");

@At("/msgin") 
public View msgin(HttpServletRequest req) throws IOException {
    return Wxs.handle(wxHandler, req, "default"); 
}

}

用tomcat访问 http://127.0.0.1:8080/$Weixin/weixin/msgin时,一直报错404
请问这是什么原因

2 回复

18-11-07 14:00:37.148 ERROR [localhost-startStop-1] Error happend during start serivce!
java.lang.RuntimeException: Moudle with @InjectName('null') or @IocBean('null') but you not declare a Ioc for this app!! Miss @IocBy at MainMdoule??
at org.nutz.lang.Lang.makeThrow(Lang.java:135)
at org.nutz.mvc.impl.processor.ModuleProcessor.init(ModuleProcessor.java:72)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
at org.nutz.mvc.ActionHandler.(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.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4747)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5389)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:731)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:620)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1832)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
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)

java.lang.RuntimeException: Moudle with @InjectName('null') or @IocBean('null') but you not declare a Ioc for this app!! Miss @IocBy at MainMdoule??

来自炫酷的 NutzCN

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