jpa连接mysql8自动建表

原创 创建时间:2019-06-15 访问量:112 赞:0 踩:0
jpa:
hibernate:
ddl-auto: create
naming:
physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
show-sql: true
open-in-view: true
database: MYSQL
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
connect:
autoReconect: true

c3p0.properties

#数据库连接
c3p0.jdbcUrl=jdbc:mysql://localhost:3306/strive?useSSL=false&autoReconnect=true&serverTimezone=UTC
c3p0.user=ENC(xYABcNO57ppZsDVftm7Tvw==)
c3p0.password=ENC(O1KV/2eMOeQbW/k964UeH5LueyFI5fC+)
c3p0.driverClass=com.mysql.cj.jdbc.Driver
c3p0.minPoolSize=2
c3p0.maxPoolSize=10
c3p0.maxIdleTime=1800000
c3p0.acquireIncrement=3
c3p0.maxStatements=1000
c3p0.initialPoolSize=3
c3p0.idleConnectionTestPeriod=60
c3p0.acquireRetryAttempts=30
c3p0.acquireRetryDelay=1000
c3p0.breakAfterAcquireFailure=false
c3p0.testConnectionOnCheckout=false
评论
 我想说:
==已经到底了==
关注: 粉丝: 积分:
工联信息网
如有问题请致邮箱:need@glxxw2018.com(仅限本站无法查询到的资料);本站能够查询到的资料请关注“工联信息网”公众号,通过页面提供的资源码查询!
不良信息反馈及侵权投诉建议请致邮箱:accusation@glxxw2018.com