com/opensymphony/xwork2/spring/SpringObjectFactory.java:230:-1
2015-08-30 21:09
876 查看
原因两个:
1.lib中多导入包的大原因:去掉struts2-spring-plugin-2.1.8包即可,因为没有用到spring。
2.还有的原因是用spring了,却没加监听器,在web.xml里面加上
<!-- 通过上下文参数配置spring文件的位置 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:beans.xml,classpath:schedules.xml</param-value>
</context-param>
<!-- 上下文载入器监听器,确保web服务器启动时,直接完成spring容器的初始化 将spring容器存放在application中 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
1.lib中多导入包的大原因:去掉struts2-spring-plugin-2.1.8包即可,因为没有用到spring。
2.还有的原因是用spring了,却没加监听器,在web.xml里面加上
<!-- 通过上下文参数配置spring文件的位置 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:beans.xml,classpath:schedules.xml</param-value>
</context-param>
<!-- 上下文载入器监听器,确保web服务器启动时,直接完成spring容器的初始化 将spring容器存放在application中 -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
相关文章推荐
- 是否可以修改 JavaScript 的本地对象(native object)
- a different object with the same identifier value was already associated with the session:
- 常见问题总结篇 一 、Objective C 方法和 C方法的混合调用
- jmeter中vars.putObject的使用:可传递int变量
- java实现map和object互转的三种方法
- 关于ibatis 的使用 queryForObject
- Objective-C 【多个对象内存管理(野指针&内存泄漏)】
- Objective-C 【多个对象内存管理(野指针&内存泄漏)】
- Objective-C isa 指针 与 runtime 机制
- 【Objective-C】类方法与对象方法
- Qt QAxObject操作excel文件过程总结
- OpenGL帧缓存对象(FBO:Frame Buffer Object)
- Objective-C 【单个对象内存管理(野指针&内存泄露)】
- Objective-C 【单个对象内存管理(野指针&内存泄露)】
- Objective-C 【内存管理&手动内存管理 综述】
- Objective-C 【内存管理&手动内存管理 综述】
- Java中Object类
- Swift Object-c 相互调用
- Objective-C( protocol协议)
- c# - 对象缓存 OBJECT CACHING