项目结构
--zango (父模块)
--portal (web子模块)
子模块的controller
@IocBean
@At("/portal/buy")
public class BuyController {
private static final Log log = Logs.get();
@Inject
private CmsSiteService cmsSiteService;
@At({"/cart"})
@Ok("beetl:/portal/buy/cart.html")
public void cart(String id,HttpServletRequest req) {
}
}
报错信息
2017-01-08 15:13:54,132 org.beetl.ext.nutz.LogErrorHandler.processExcption(LogErrorHandler.java:32) DEBUG - 模板根目录为 D:\IdeaProjects\zango\src\main\webapp\WEB-INF\views
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:122)
>>03:13:54:错找不到指定模板或者加载错(TEMPLATE_LOAD_ERROR): 位于0行 资源:/portal/buy/cart.html 模板根目录为 D:\IdeaProjects\zango\src\main\webapp\WEB-INF\views
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
2017-01-08 15:13:54,133 com.zango.common.processor.LogTimeProcessor.process(LogTimeProcessor.java:26) DEBUG - [GET ]URI=/portal/buy/cart 36ms
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
路径怎么指向父模块去了