2013年9月21日

struts2整合spring出现的Unable to instantiate Action异常

摘要: 在struts2整合spring的时候,完全一步步按照官方文档上去做的,最后发现出现 Unable to instantiate Action,网上一搜发现很多人和我一样的问题,配置什么都没有错误,就是出现这个问题,其实这个原因很简单就是Spring容器没有启动,struts2容器到spring容器里面找Action的时候当然就找不到了。 问题就出在web.xml配置的问题,按照struts2官方文档上面步骤,在web.xml里面配置加入以下代码: contextConfigLocation /WEB-INF/applicationContext-*.xml,classpat... 阅读全文

posted @ 2013-09-21 15:51 Arts&Crafts 阅读(1926) 评论(0) 推荐(0) 编辑

导航