Closed GoogleCodeExporter closed 9 years ago
你用的是什么版本呢?
Original comment by wendal1985@gmail.com
on 11 Mar 2011 at 9:51
问题产生的原因:
1. LocalResourceScan的83行没有判断pos是否大于0
2. 在Web环境,但不使用NutMVC的情况下,
Scans类就使用LocalResourceScan而非WebResourceScan
解决:
1. 修正LocalResourceScan的bug
2. 在哪个文档里面提醒一下要自行调用 Scans.init(ServletContext)??
文档写好再Fix这个bug吧.
Original comment by wendal1985@gmail.com
on 11 Mar 2011 at 10:01
看来需要新增一个文档,讲讲 Scans
Original comment by zozoh...@gmail.com
on 11 Mar 2011 at 2:02
在什么地方调用Scans.init(ServletContext)呢?
Original comment by lein.x...@gmail.com
on 13 Mar 2011 at 2:26
你需要自己定义一个Servlet,并设置为启动即加载.这个servlet无�
��对应任何url,仅需要在init方法中调用Scans.init(ServletContext)
Original comment by wendal1985@gmail.com
on 13 Mar 2011 at 3:08
谢谢,问题已经解决,代码如下,不知道有没有问题
public class ScansServlet extends HttpServlet {
@Override
public void init() throws ServletException {
super.init();
Scans.me().init(this.getServletContext());
}
}
Original comment by lein.x...@gmail.com
on 13 Mar 2011 at 5:54
就是这样写,并且load-on-start最好写1,其他servlet都写2或以上
Original comment by wendal1985@gmail.com
on 13 Mar 2011 at 11:58
Original comment by zozoh...@gmail.com
on 24 Mar 2011 at 4:21
Original comment by zozoh...@gmail.com
on 15 Jul 2011 at 3:49
Original issue reported on code.google.com by
lein.x...@gmail.com
on 11 Mar 2011 at 8:39