为什么sqlSession的值总是为空?
运行的时候抛出异常:
严重: Servlet.service() for servlet [ListServlet] in context with path [/MicroMessage] threw exception [Servlet execution threw an exception] with root cause java.lang.ClassNotFoundException: org.apache.ibatis.io.Resources
调试的时候发现,执行以下代码时直接跳过第二句,导致sqlSession为null,到底哪里出了问题?
sqlSession = dbAccess.getSqlSession(); messageList = sqlSession.selectList("Message.queryMessageList");//这一段没有执行
接着提示:
Source not found for ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 310
该怎么解决T_T