Struts2与Spring3整合遇到Action not found问题的解决
来源:互联网 发布:重庆市知行卫校 编辑:程序博客网 时间:2024/05/21 20:26
近来要建立SSH的项目框架,整合Struts2与Spring3时候发现,Struts2的Action已托管到Spring3,并且在Struts2配置的class节点指向Spring的Bean ID(参考),但项目启动时仍然报Action not Found 。 究其原因是Struts和Spring之间的整合还需要另一个jar包(struts2-spring-plugin),通过plugin引入ActionAutowiringInterceptor拦截器,按照class的名字注入Spring托管的Action。
解决思路:
1、导入struts2-spring-plugin-2.2.2.3.1.jar
2、在Struts的配置里面引入struts-plugin
struts.xml
<include file="struts-default.xml" />
<include file="struts-plugin.xml" />
问题就解决了
- Struts2与Spring3整合遇到Action not found问题的解决
- SSH中spring和struts2整合遇到的问题,Action class not found
- Struts2+Spring3+Hibernate3整合时遇到的包冲突问题
- Struts2+Spring3整合项目时遇到的一个问题
- struts2与hibernate整合遇到的问题
- 配置struts2遇到的class not found 的问题
- Struts2:Action not found
- 遇到mq mqjbnd not found问题与解决
- struts2 和 spring整合时的 Action class ... not found 异常
- struts2与spring3整合
- SSH框架搭建遇到的问题---Action class [userAction] not found - action
- 解决'GLIBC_2.14' not found问题时遇到的坑
- Struts2与Spring整合时Action的创建问题
- Spring 与Struts2整合遇到的问题以及解决方案
- spring3+struts2+hibernate3整合出现的问题,No mapping found for dependency [type=java.lang.String, name='str
- 3 Spring3与Struts2整合
- Struts2开发遇到的问题之Could not find action or result
- Apache遇到的问题:APR not found
- Google Chrome(谷歌浏览器)修改网页背景颜色的办法(比如修改为护眼的豆沙绿)
- 在SAE使用Apple Push Notification Service服务开发iOS应用
- 浅谈单片机c语言模块化编程-附ds1302时钟芯片驱动程序
- 驻韩大使就中国渔民死亡事件今上午约见韩方-驻韩大使-约见-渔民死亡
- 设计模式示例-原型模式
- Struts2与Spring3整合遇到Action not found问题的解决
- linux下,纯c++使用libxml2读取xml文件
- 修改phpmyadmin中的登陆超时时间
- 基于HTML5构建Web操作系统
- C++符号常量-预处理器方式(修改基本和符合常量的最大和最小值)
- alter table XXX shrink space compact/cascade详解
- 十六个eclipse常用快捷键
- c# 无法加载DLL“###.dll”,: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)
- Grub2 开启选择上次使用的启动选项