在servlet中调用的自己写的方法,请求该servlet是出现如下异常:
Servlet.service() for servlet [AddCommentServlet] in context with path [/OLClass] threw exception [Servlet execution threw an exception] with root cause
java.lang.NoSuchMethodError: com.example.dao.CommentDao.addComments(IILjava/lang/String;)Z
_
该方法经过main 测试没问题的,百度多说是jar包问题,但我的方法是自己写的。找不出是什么原因,求大神指点
_