这是XML文件和c3p0的配置文件driverClass=com.mysql.jdbc.DriverjdbcUrl=jdbc:mysql://127.0.0.1:3306/gameClubusername=rootpassword=root#C3P0SettingacquireIncrement=5maxPoolSiz...
这是XML文件 和 c3p0的配置文件
driverClass=com.mysql.jdbc.Driver
jdbcUrl=jdbc:mysql://127.0.0.1:3306/gameClub
username=root
password=root
#C3P0 Setting
acquireIncrement=5
maxPoolSize=100
minPoolSize=10
initialPoolSize=20
maxIdleTime=600
checkoutTimeout=3000
maxConnectionAge=30000
autoCommitOnClose=false
acquireRetryDelay=3000
idleConnectionTestPeriod=60
maxStatements=5
numHelperThreads=12
#Hibernate Setting
hibernate.cache.use_second_level_cache=false
hibernate.show_sql=false
hibernate.jdbc.batch_size=30
hibernate.jdbc.fetch_size=50
hibernate.hbm2ddl.auto=update
hibernate.cache.use_query_cache=false
hibernate.format_sql=true
hibernate.cache.provider_class=org.hibernate.cache.OSCacheProvider
hibernate.dialect=org.hibernate.dialect.MySQLDialect
请问一下如何解决这个问题 是配置的问题吗? 还是事务未能及时提交或回滚导致的?
展开