c3p0数据源和dbcp数据源配置

c3p0数据源变量名

driverClass=com.mysql.cj.jdbc.Driver
jdbcUrl=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
user=root
password=123456
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.hbm2ddl.auto=update
hibernate.current_session_context_class=thread
hibernate.show_sql=true
hibernate.format_sql=true

dbcp数据源变量名
db.driverClassName=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost:3306/booksystem?useUnicode=true&characterEncoding=utf8
db.username=root
db.password=123456

hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=update
hibernate.format_sql=true
 

猜你喜欢

转载自blog.csdn.net/tangbin0505/article/details/82820749