问题描述
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'org.springframework.security.filterChainProxy':Cannotresolvereferencetobean'casProcessingFilter'whilesettingbeanproperty'filterChainMap'withkey[Rootbean:class[org.springframework.security.web.util.AnyRequestMatcher];scope=;abstract=false;lazyInit=false;autowireMode=0;dependencyCheck=0;autowireCandidate=true;primary=false;factoryBeanName=null;factoryMethodName=null;initMethodName=null;destroyMethodName=null]withkey[3];nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'casProcessingFilter'definedinServletContextresource[/WEB-INF/applicationContext-security.xml]:Initializationofbeanfailed;nestedexceptionisorg.springframework.beans.ConversionNotSupportedException:Failedtoconvertpropertyvalueoftype'cst.com.spring.security.UserDetailService'torequiredtype'org.springframework.security.core.userdetails.UserDetailsService'forproperty'userDetailsService';nestedexceptionisjava.lang.IllegalStateException:Cannotconvertvalueoftype[cst.com.spring.security.UserDetailService]torequiredtype[org.springframework.security.core.userdetails.UserDetailsService]forproperty'userDetailsService':nomatchingeditorsorconversionstrategyfound整合的时候出现这个错误,请教各教大虾解决办法
解决方案
解决方案二:
该回复于2011-03-03 08:36:17被版主删除
解决方案三:
查看一下你的配置文件'userDetailsService'在哪里有配置吗?
解决方案四:
查查'userDetailsService'在配置文件中有配置吗?