关于struts的小异常
来源:互联网 发布:网络机顶盒有哪些牌子 编辑:程序博客网 时间:2024/06/05 20:34
Line: 209 - com/opensymphony/xwork2/spring/SpringObjectFactory.java:209:-1
解决办法:
是加上包:struts2-spring-plugin-2.3.15.3.jar,并且在web.xml中配置一下:
即加上
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
二:后来还是报错,网上搜了一下,应该是在web-inf下缺少applicationContext.xml,于是随便搜了一个applicationContext.xml,放到web-inf下,还是报错,就把applicationContext.xml里面的东西修改成这样:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="org.apache.struts2.showcase"/>
<context:annotation-config/>
<!-- Showcase's CustomFreemarkerManager example -->
</beans>
修改后,问题得到解决。
- 关于struts的小异常
- 关于Struts处理异常框架的小例子
- struts的几个小异常
- 关于struts的异常处理
- 关于struts标签的一个小问题
- 关于Struts + Hibernate 的项目产生的“非常异常”
- 关于Struts + Hibernate 的项目产生的非常异常
- 一个关于用Struts实现文件上传异常的解决
- 关于Struts与Ajax整合时的异常处理
- struts的异常处理
- Struts的异常处理
- struts的异常处理
- 关于Struts中的saveErrors方法的一点小经验
- 关于struts与spring整合的一个小案例入门
- 关于学习编程(struts)的一点小感想
- [Struts2异常]关于发生Struts配置异常:Unable to find parent packages struts-default.xml的解决方案
- 以前的一个面试题,关于异常的小练习!
- 关于java中自定义异常的小总结
- C:if 0 #endif和:#if 1 #endif
- J2EE基础总结(2)——Servlet/JSP
- House Robber
- hdu 3245 zoj 3188 Treeland Exhibition (树形dp)
- 用数据驱动思想来设计游戏
- 关于struts的小异常
- [LeetCode]Two Sum
- webAPP开发的问题(总结)
- C++ 实现读取URL中的源码
- Struts1和Struts2 的一些对比
- CSS制作用户登录和用户注册的用户体验表单
- C++实现字符串替换的两种方法
- java 服务器 获取web端IP
- Git使用方法