配置struts出现404错误
来源:互联网 发布:软件开发助理发展前景 编辑:程序博客网 时间:2024/05/17 03:08
1、导包:ssh的全部包,首先配置web.xml,添加struts2拦截器和欢迎界面
2、写action文件
3、写struts配置
A出现问题
严重: Exception starting filter struts2
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
B原因
Struts2-spring-plugin-2.2.1.jar”jar包下的struts-plugin.xml里有如下配置:
<bean type="com.opensymphony.xwork2.ObjectFactory" name="spring" class="org.apache.struts2.spring.StrutsSpringObjectFactory" />
这 表明该插件引入工程后,会自动设置Struts的 ObjectFactory为 StrutsSpringObjectFactory,从而让Spring的IOC容器来托管Struts的Action。但是在web.xml里面没配置spring监听器所以出错,把这个包删掉
C结果:成功
0 0
- 配置struts出现404错误
- Struts2在web.xml,struts.xml配置中出现404错误,解决方案
- struts配置错误页面
- struts 文件上传出现错误
- 加载struts,spring,hibernate出现404错误可能的原因
- struts-2.1.6 版本部署出现404错误的原因
- 加载struts,spring,hibernate出现404错误可能的原因
- Weblogic下配置Struts应用时出现tag错误的解决方法
- 使用S2SH框架时,在配置struts.xml文件使用JSON返回类型出现错误
- struts2配置出现404错误解决
- struts2配置完出现404错误小结
- struts2 STRUTS.XML 配置错误
- struts全局错误的配置
- struts出现Developer Notification错误时
- 解决struts配置 报http status 404 错误的方案
- struts 配置出现错误 There is no Action mapped for namespace [/] and action name [findPage] associated with
- servlet和struts共存配置出现问题
- 配置DRBD出现错误总结
- iOS内存管理策略和实践
- ReactiveCocoa学习(二)
- selenium grid2 - node说明
- js_事件流
- 面向对象(构造函数+构造代码块)-第10天
- 配置struts出现404错误
- Android开发工具汇总
- 算法进军大道(二)
- Poj 3461 Oulipo
- BeagleBone Black使用无线网卡通过WIFI联网
- CocoaPods pod install/pod update更新慢的问题
- js代码触发onchange事件
- 移动基地SDK接入Cocos2dx手游笔记
- linux下编译安装程序的路径说明