spring 问题请高人回答 在线等
javax.servlet.ServletException: Error creating bean with name 'ggbiz' defined in class path resource [applicationContext.xml]: Error setting property values;
nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.jzaccp.oa.gonggongxinxi.dao.impl.DBBase] to required type [com.jzaccp.oa.gonggongxinxi.biz.Interface.IGg] for property 'ggdao'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type [com.jzaccp.oa.gonggongxinxi.dao.impl.DBBase] to required type [com.jzaccp.oa.gonggongxinxi.biz.Interface.IGg] for property 'ggdao': no matching editors or conversion strategy found
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.jzaccp.oa.gonggongxinxi.filter.CharEncodingFilter.doFilter(CharEncodingFilter.java:24)
root cause
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ggbiz' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.
TypeMismatchException: Failed to convert property value of type [com.jzaccp.oa.gonggongxinxi.dao.impl.DBBase] to required type [com.jzaccp.oa.gonggongxinxi.biz.Interface.IGg] for property 'ggdao'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of type [com.jzaccp.oa.gonggongxinxi.dao.impl.DBBase] to required type [com.jzaccp.oa.gonggongxinxi.biz.Interface.IGg] for property 'ggdao': no matching editors or conversion strategy found
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1125)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)
org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:82)
javax.servlet.GenericServlet.init(GenericServlet.java:211)
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)