严重: 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 'test' defined in ServletContext resource [/WEB-INF/classes/config/spring/spring_action_test.xml]: Cannot resolve reference to bean 'testUserService' while setting bean property 'testUserService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testUserService' defined in ServletContext resource [/WEB-INF/classes/config/spring/spring_service_test.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy6 implementing com.sjth.frame.dao.BaseDaoQuery,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised' to required type 'com.sjth.frame.dao.impl.BaseDaoQueryImpl' for property 'baseDaoQuery'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy6 implementing com.sjth.frame.dao.BaseDaoQuery,org.springframework.beans.factory.InitializingBean,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.sjth.frame.dao.impl.BaseDaoQueryImpl] for property 'baseDaoQuery': no matching editors or conversion strategy found
roadrantz-chcache.xml<?xml version="1.0" encoding="UTF-8"?>
 <beans xmlns="http://www.springframework.org/schema/beans"  
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xmlns:ehcache="http://www.springmodules.org/schema/ehcache"  
     xsi:schemaLocation="http://www.springframework.org/schema/beans 
       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd  
             http://www.springmodules.org/schema/ehcache 
             http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd"> 
             
             
             <!-- 导入的缓存配置 -->
             <ehcache:config configLocation="/config/spring/ehcache.xml"/>
             
             
             <!-- 注解 -->
             <!--缓存模型和刷新模型 -->
             <ehcache:annotations providerId="cacheProvider">
              <ehcache:caching cacheName="studentDao" id="studentCacheModel"/>
              <ehcache:flushing cacheNames="studentDao" id="studentCacheFlushModel" when="before"/>
             </ehcache:annotations>
</beans> 
ehcache.xml
<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="true"
monitoring="autodetect">
<diskStore path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
memoryStoreEvictionPolicy="LRU"
/>
<cache name="studentDao"
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
memoryStoreEvictionPolicy="LRU"
/>
</ehcache>
BaseDaoQueryImpl
package com.sjth.frame.dao.impl;import java.util.List;import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springmodules.cache.annotations.Cacheable;import com.ibatis.sqlmap.client.SqlMapClient;
import com.sjth.frame.dao.BaseDaoQuery;
public class BaseDaoQueryImpl extends SqlMapClientDaoSupport implements BaseDaoQuery{
public BaseDaoQueryImpl() {
System.out.println("已经加载BaseDaoQueryImpl");
}


@Cacheable(modelId="studentCacheModel")
public List queryForList(String ibatisName, Object object) {
// TODO Auto-generated method stub
return this.getSqlMapClientTemplate().queryForList(ibatisName, object);
} public Object queryForObject(String ibatisName, Object object) {
// TODO Auto-generated method stub
return this.getSqlMapClientTemplate().queryForObject(ibatisName, object);
}
}
不写@Cacheable(modelId="studentCacheModel")就是对的,写了就报上面错,请大侠帮忙