在流程中:
<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
帮我