<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
幫我
questoè'r'rrore:org.springframework.beans.factory.BeanCreationException:在ServletContext資源中定義的名爲'mainService' /WEB-INF/jdbc-context.xml]:bean的實例化失敗;嵌套異常是org.springframework.beans.BeanInstantiationException:無法實例化bean類[com.aieap.services.MainService]:指定的類是一個接口 – user1671106