- 博客(8)
- 收藏
- 关注
原创 打印实体类详细信息
正常情况下,定义一个实体类,进行日志打印其实体对象,打印如下图在实体类中重写toString方法,可以使实体对象规范化的进行打印打印结果:
2020-11-22 21:48:05
3769
原创 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
262
原创 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
956
原创 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
266
原创 MySQL数据库连接url
jdbc连接MySQL的url格式:jdbc:mysql://[host][,failoverhost…][:port]/[database] [?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]…
2020-11-22 17:43:15
620
原创 idea:Diamond types are not supported at language level ‘5‘
idea中编写代码出现报错:Diamond types are not supported at language level ‘5’解决方案:右键项目–>open module setting–>language level改为8-lambdas
2020-11-14 11:51:49
464
原创 idea编译-不再支持源选项5
使用idea进行项目打包时,“不再支持源选项5。请使用6或更高版本”解决:在pom文件中设置编译版本<java.version><maven.compiler.target>…
2020-11-11 12:38:45
313
原创 自定义持久层框架
自定义持久层框架1.加载配置文件2.创建两个javaBean存放配置文件解析出来的内容3.解析配置文件dom4j4.创建sqlsession factory接口及实现类生产sqlSession5.创建SqlSession接口及实现类定义数据库crud操作6.创建executor接口及实现类(封装jdbc)query(configuration,mapped Statement,params)...
2020-11-10 12:46:31
1428
5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人