首页 > 代码库 > springmvc3.2+spring+hibernate4全注解方式整合(二)

springmvc3.2+spring+hibernate4全注解方式整合(二)

jdbc.properties

#hibernate settings hibernate.show_sql=truehibernate.format_sql=truehibernate.cache.use_query_cache=truehibernate.cache.provider_class=net.sf.ehcache.hibernate.SingletonEhCacheProvider  #mysql version database settingjdbc.driver=com.mysql.jdbc.Driverjdbc.url=jdbc:mysql://localhost:3306/shmvc?useUnicode=true&characterEncoding=utf-8jdbc.username=rootjdbc.password=adminhibernate.dialect=org.hibernate.dialect.MySQL5Dialect#org.hibernate.dialect.MySQL5Dialectcpool.checkoutTimeout=5000# Connection pool sizecpool.minPoolSize=5cpool.maxPoolSize=10cpool.maxIdleTime=1200cpool.maxIdleTimeExcessConnections=1800cpool.acquireIncrement=5