フローで:
<action-state id="create">
<evaluate expression="operatore_rer" result="flowScope.operatore_rer" />
<evaluate expression="mainService.getComuni()" result="flowScope.comuni_list" />
<transition to="nuovo-operatore-rer" />
</action-state>
評価式はメソッド mainService.getComuni() を呼び出しません
どこでどのように mainService を宣言する必要がありますか????
これをapplicationContextで宣言すると:
<bean id="mainService" class="com.aieap.services.MainService" />
これはエラーです:
GRAVE: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mainService' defined in ServletContext resource [/WEB-INF/dispatch-servlet.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.aieap.services.MainService]: Specified class is an interface
助けて