strust2我的配置文件applicationContext-core.xml一直报错,工程启动没事,一调用action就报错,大神谁知道为啥啊?
applicationContext-core.xml
<bean id="Btg02010Action" class="jp.co.token.bijyutsutouken.action.Btg02010Action" scope="prototype">
<property name="ibtg02010Service" ref="Btg02010ServiceImpl"/>
</bean>
<bean id="Btg02010ServiceImpl" class="jp.co.token.bijyutsutouken.service.impl.Btg02010ServiceImpl">
<property name="ibtg02010Dao" ref="Ibtg02010Dao"/>
</bean>
<bean id="Ibtg02010Dao" class="org.mybatis.spring.mapper.MapperFactoryBean">
<property name="mapperInterface" value="jp.co.token.bijyutsutouken.dao.Ibtg02010Dao"></property>
<property name="sqlSessionFactory" ref="sqlSessionFactory"></property>
</bean>
名称对过了,绝对没问题,跟action和service里定义的一直,都有getset方法
错误:
Unable to instantiate Action, Btg02010Action, defined for 'Btg02010Action' in namespace ''Error creating bean with name 'Btg02010Action' defined in file [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\bijyutsutouken\WEB-INF\classes\applicationContext-core.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'jp.co.token.bijyutsutouken.service.impl.Btg02010ServiceImpl$$EnhancerBySpringCGLIB$$2226f010' to required type 'jp.co.token.bijyutsutouken.service.Ibtg02010Service' for property 'ibtg02010Service'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'jp.co.token.bijyutsutouken.service.impl.Btg02010ServiceImpl$$EnhancerBySpringCGLIB$$2226f010' to required type 'jp.co.token.bijyutsutouken.service.Ibtg02010Service' for property 'ibtg02010Service': no matching editors or conversion strategy found - action - file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/bijyutsutouken/WEB-INF/classes/struts.xml:46:77