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

jdbc.properties

#hibernate settings 
hibernate.show_sql=true
hibernate.format_sql=true
hibernate.cache.use_query_cache=true
hibernate.cache.provider_class=net.sf.ehcache.hibernate.SingletonEhCacheProvider  

#mysql version database setting
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/shmvc?useUnicode=true&characterEncoding=utf-8
jdbc.username=root
jdbc.password=admin
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
#org.hibernate.dialect.MySQL5Dialect
cpool.checkoutTimeout=5000
# Connection pool size
cpool.minPoolSize=5
cpool.maxPoolSize=10
cpool.maxIdleTime=1200
cpool.maxIdleTimeExcessConnections=1800
cpool.acquireIncrement=5
原文地址:https://www.cnblogs.com/fangj/p/3820235.html