![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
随笔
Together--
这个作者很懒,什么都没留下…
展开
-
打印实体类详细信息
正常情况下,定义一个实体类,进行日志打印其实体对象,打印如下图在实体类中重写toString方法,可以使实体对象规范化的进行打印打印结果:原创 2020-11-22 21:48:05 · 3454 阅读 · 0 评论 -
Connections could not be acquired from the underlying database!
使用c3p0连接数据库报错:Connections could not be acquired from the underlying database!经过一系列尝试,发现是时区设置问题:设置时区原创 2020-11-22 21:38:14 · 206 阅读 · 0 评论 -
The server time zone value ‘乱码‘ is unrecognized or represents more than one time zone.
Connection连接mysql数据库,报错内容:The server time zone value ‘乱码’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if y原创 2020-11-22 21:23:47 · 847 阅读 · 0 评论 -
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
报错内容:Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class iscom.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.提示使用新驱动:com.mysql.cj.jdbc.原创 2020-11-22 20:11:26 · 212 阅读 · 0 评论 -
MySQL数据库连接url
jdbc连接MySQL的url格式:jdbc:mysql://[host][,failoverhost…][:port]/[database] [?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]…原创 2020-11-22 17:43:15 · 533 阅读 · 0 评论