spring在web.xml中的配置问题
文章平均质量分 69
Java慧
开心学习,开心工作,开心每一天
展开
-
Line: 230 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:230:-1
启动服务器时出现如下异常:Line: 230 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:230:-1原因有两个:1.没用到Spring,但是多了相关jar;2.Maven相关项目中用到了Spring,却没加监听器。在web.xml中,配置如下所示: contextConfigLocation翻译 2014-03-07 21:10:02 · 748 阅读 · 0 评论 -
spring整合struts2(hibernate的配置和spring配置文件综合在一起)
第一步就是引入struts2和spring最基本已经struts中的spring-plugin的jar包,然后在web.xml配置filter引入struts2和配置listener引入spring如: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter str翻译 2014-03-07 22:20:37 · 949 阅读 · 0 评论