Spring AOP請教
大家好,有個問題想請教,在用Spring AOP攔截Struts的action時發生一個問題:被代理過的action不能被struts識別,錯誤資訊如下:
2009-04-09 23:36:18,187:org.apache.struts.action.RequestProcessor--Unhandled Exception thrown: class org.springframework.beans.factory.BeanNotOfRequiredTypeException
2009-04-09 23:36:18,203:org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbs].[action]--Servlet.service() for servlet action threw exception
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named '/login' must be of type [org.apache.struts.action.Action], but was actually of type [$Proxy1]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:258)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:541)
請大蝦們指教~~~~~該怎麼辦呢?
還有一個問題就是為了攔截action中的execute方法,我的action需要實現一個包含execute方法的介面嗎?
2009-04-09 23:36:18,187:org.apache.struts.action.RequestProcessor--Unhandled Exception thrown: class org.springframework.beans.factory.BeanNotOfRequiredTypeException
2009-04-09 23:36:18,203:org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/bbs].[action]--Servlet.service() for servlet action threw exception
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named '/login' must be of type [org.apache.struts.action.Action], but was actually of type [$Proxy1]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:258)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:541)
請大蝦們指教~~~~~該怎麼辦呢?
還有一個問題就是為了攔截action中的execute方法,我的action需要實現一個包含execute方法的介面嗎?
[該貼被admin於2009-04-16 09:21修改過]
相關文章
- [Spring]AOPSpring
- spring AOPSpring
- 死磕Spring之AOP篇 - Spring AOP總覽Spring
- Spring Boot整合Spring AopSpring Boot
- spring-aopSpring
- Spring AOP APISSpringAPI
- Spring AOP IOCSpring
- Spring 的 AOPSpring
- Spring Boot使用AOP在控制檯列印請求、響應資訊Spring Boot
- 正則請教
- Spring AOP總結Spring
- Spring AOP概念理解Spring
- spring ioc和aopSpring
- Spring AOP 詳解Spring
- Spring AOP介紹Spring
- Spring AOP實踐Spring
- Spring系列.AOP使用Spring
- Spring AOP 掃盲Spring
- Spring——AOP實現Spring
- Spring 面向切面AOPSpring
- Spring aop練手Spring
- 4、spring核心AOPSpring
- Spring07:AOPSpring
- 死磕Spring之AOP篇 - Spring AOP自動代理(一)入口Spring
- 死磕Spring之AOP篇 - Spring AOP常見面試題Spring面試題
- Spring AOP學習筆記01:AOP概述Spring筆記
- 向高段位請教
- 請教phpword問題PHP
- Spring AOP 原始碼解析Spring原始碼
- Spring自學之路---AOPSpring
- 重拾-Spring-AOPSpring
- spring boot AOP筆記Spring Boot筆記
- Spring AOP實現原理Spring
- Spring-AOP(面向切面)Spring
- Spring-AOP事務Spring
- Spring(3)-AOP快速入手Spring
- 【Spring】AOP實現原理Spring
- Spring Aop 詳解二Spring
- Spring Aop 詳解一Spring