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修改過]
相關文章
- bang 大哥請教一下spring的AOPSpring
- 請教aop開發工具?
- 請教各位spring高手Spring
- 請教spring 配置檔案問題Spring
- Spring AOPSpring
- spring AOPSpring
- [Spring]AOPSpring
- 死磕Spring之AOP篇 - Spring AOP總覽Spring
- Spring AOP APISSpringAPI
- Spring 的 AOPSpring
- spring-aopSpring
- Spring AOP IOCSpring
- Spring的AOPSpring
- [Spring之AOP]Spring
- Spring(四):AOPSpring
- Spring AOP (上)Spring
- 請教大家spring mvc的action轉發問題SpringMVC
- Spring Boot使用AOP在控制檯列印請求、響應資訊Spring Boot
- 請教nullpointerexceptionNullException
- 請教高手
- Spring Boot整合Spring AopSpring Boot
- Spring 3.0 AOP 之 AOP 術語 (一)Spring
- 死磕Spring之AOP篇 - Spring AOP常見面試題Spring面試題
- 請教一個關於spring事務的問題 ?Spring
- Spring——AOP實現Spring
- Spring aop練手Spring
- Spring系列.AOP使用Spring
- Spring AOP 掃盲Spring
- Spring AOP總結Spring
- Spring AOP 詳解Spring
- spring ioc和aopSpring
- Spring AOP概念理解Spring
- Spring自學之路---AOPSpring
- Spring 面向切面AOPSpring
- Spring07:AOPSpring
- Spring AOP介紹Spring
- Spring AOP實踐Spring
- 4、spring核心AOPSpring