当前位置: 代码迷 >> Java Web开发 >> spring的有关问题,
  详细解决方案

spring的有关问题,

热度:87   发布时间:2016-04-17 15:31:03.0
spring的问题,急.......
错误如下:
Exception   sending   context   initialized   event   to   listener   instance   of   class   org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException:   Error   creating   bean   with   name   'personRegisterDAO '   defined   in   ServletContext   resource   [/WEB-INF/config/Common_Member_Spring.xml]:   Error   setting   property   values;   nested   exception   is   org.springframework.beans.NotWritablePropertyException:   Invalid   property   'queryPersonUserSql '   of   bean   class   [com.pkgame.common.member.dao.impl.PersonRegisterDAO]:   Bean   property   'queryPersonUserSql '   is   not   writable   or   has   an   invalid   setter   method:   Does   the   parameter   type   of   the   setter   match   the   return   type   of   the   getter?
org.springframework.beans.NotWritablePropertyException:   Invalid   property   'queryPersonUserSql '   of   bean   class   [com.pkgame.common.member.dao.impl.PersonRegisterDAO]:   Bean   property   'queryPersonUserSql '   is   not   writable   or   has   an   invalid   setter   method:   Does   the   parameter   type   of   the   setter   match   the   return   type   of   the   getter?
at   org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:670)
at   org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:572)
at   org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:737)
at   org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:764)
at   org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:753)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1057)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
at   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)
at   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
at   org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
at   org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at   org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at   org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at   org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  相关解决方案