自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 打印实体类详细信息

正常情况下,定义一个实体类,进行日志打印其实体对象,打印如下图在实体类中重写toString方法,可以使实体对象规范化的进行打印打印结果:

2020-11-22 21:48:05 3279

原创 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 198

原创 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 758

原创 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 206

原创 MySQL数据库连接url

jdbc连接MySQL的url格式:jdbc:mysql://[host][,failoverhost…][:port]/[database] [?propertyName1][=propertyValue1][&propertyName2][=propertyValue2]…

2020-11-22 17:43:15 515

原创 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 350

原创 idea编译-不再支持源选项5

使用idea进行项目打包时,“不再支持源选项5。请使用6或更高版本”解决:在pom文件中设置编译版本<java.version><maven.compiler.target>…

2020-11-11 12:38:45 221

原创 自定义持久层框架

自定义持久层框架1.加载配置文件2.创建两个javaBean存放配置文件解析出来的内容3.解析配置文件dom4j4.创建sqlsession factory接口及实现类生产sqlSession5.创建SqlSession接口及实现类定义数据库crud操作6.创建executor接口及实现类(封装jdbc)query(configuration,mapped Statement,params)...

2020-11-10 12:46:31 1257 5

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除