但是我有但是我发现LRUMap类的路径是org/apache/commons/collections/LRUMap
这是怎么回事啊.
这是怎么回事啊.
解决方案 »
- eclipse下.CVS 有好几个用户,如何更改成自己要用的那个用户?
- 问 jsp按回车直接提交
- 大侠们,帮忙啊!
- 关于开发性能的问题,Collection,Vector,Arraylist,List的问题,高手请进
- 请大家推荐一款jsp+mysql的空间,最好支持jsp2.0!
- 请问网站上的"全文搜索"是怎么实现的?
- response.sendRedirect()的问题
- 对于servlet类找不到的问题,请列位看官会诊
- 如何开发api接口
- 关于数据库查询,只写了以下东西,没有看到sql语句。是怎样得到数据的?
- jsp提交参数给Servlet实现简单登录测试 但是无响应
- hibernate saveOrUpdate问题
<?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>