但是我有但是我发现LRUMap类的路径是org/apache/commons/collections/LRUMap
这是怎么回事啊.

解决方案 »

  1.   

    spring 配置文件如下:
    <?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:context="http://www.springframework.org/schema/context"
     xmlns:aop="http://www.springframework.org/schema/aop"
     xmlns:tx="http://www.springframework.org/schema/tx"
     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
     <context:component-scan base-package="cn.zfy.beans"></context:component-scan>
     <bean id="dataSource"
     class="com.mchange.v2.c3p0.ComboPooledDataSource"
     destroy-method="close">
     <property name="driverClass"
     value="com.microsoft.sqlserver.jdbc.SQLServerDriver">
     </property>
     <property name="jdbcUrl"
     value="jdbc:sqlserver://localhost:1433;databaseName=ssh">
     </property>
     <property name="user" value="zfy"></property>
     <property name="password" value="123"></property>
     <!-- 指定连接数据库连接池的最小连接数 -->
     <property name="minPoolSize" value="10" />
     <!-- 指定连接数据库连接池的最大连接数 -->
     <property name="maxPoolSize" value="30" />
     <!-- 指定连接数据库连接池的连接的最大空闲时间 -->
     <property name="maxIdleTime" value="1800" />
     <property name="acquireIncrement" value="2" />
     <property name="maxStatements" value="0" />
     <!-- 指定连接数据库连接池的初始化连接数 -->
     <property name="initialPoolSize" value="2" />
     <!-- 指定检查空闲连接的数量 -->
     <property name="idleConnectionTestPeriod" value="1800" />
     </bean> <bean name="sessionFactory"
     class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
     <property name="dataSource" ref="dataSource" />
     <property name="mappingResources">
     <list>
     <value>cn/zfy/beans/person.hbm.xml</value>
     </list>
     </property>
     <property name="hibernateProperties">
     <value>
     hibernate.dialect=org.hibernate.dialect.SQLServerDialect
     hibernate.hbm2ddl.auto=update
     hibernate.show_sql=true
     </value>
     </property>
     </bean> <bean name="txTransaction"
     class="org.springframework.orm.hibernate3.HibernateTransactionManager">
     <property name="sessionFactory" ref="sessionFactory" />
     </bean>
     <tx:annotation-driven transaction-manager="txTransaction"/>
    </beans>
      

  2.   

    一般找不到类 都是这个问题 要不然就是jar冲突
      

  3.   

    嗯,版本问题或者是jar包冲突..
      

  4.   

    找到就好,以为你没写在spring配置文件里