0
我已經集成了Struts 2和Spring 3,它工作正常。我使用自定義的ObjectFactory從Spring上下文獲取Action實例。現在我已經實現了AOP like,Struts2和Spring 3集成+ AOP未能創建Action代理
@Pointcut("target(com.motherframework.frontendplugin.struts2.action.BaseAction)")
BaseAction是抽象類。我還有一些爲Service層定義的切入點。但是,當服務器啓動時,我得到一個錯誤一樣,
DEBUG JdkDynamicAopProxy:113 - Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [com.[email protected]c11557]
DEBUG DefaultListableBeanFactory:452 - Finished creating instance of bean 'customAction'
Sep 30, 2012 4:20:11 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter struts2
Unable to load configuration. - action - file:<file-path>/EPMS/WEB-INF/classes/struts-security.xml:6:80
...
Caused by: Action class [customAction] does not have a public no-arg constructor
下面是我strts.xml
<action name="restrictUser" class="customAction" method="restrictUser" />
請幫助!
有這方面的更新... –