当前位置: 代码迷 >> Java Web开发 >> springmvc+ibatis 用servlet启动加载数据库内容出错
  详细解决方案

springmvc+ibatis 用servlet启动加载数据库内容出错

热度:97   发布时间:2016-04-16 22:08:45.0
springmvc+ibatis 用servlet启动加载数据库内容报错
这是报错信息
这是web.xml

以下两个是servlet


我是想pringlemvc启动后从数据库查出信息之后存入容器中,结果每到调用AreaService时候就会报错,请大神帮忙看看是什么原因!谢谢!
------解决方案--------------------

AbstractApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"spring/application.xml"});
XXService xxService = (XXService) context.getBean("xxService");

  相关解决方案