- 博客(7)
- 收藏
- 关注
原创 JPA使用一对多映射关系@data注解报错问题
问题:JPA使用一对多映射关系@data注解时报错,但是使用@Setter @Getter时不报错,这是什么原因呢?Unable to evaluate the expression Method threw 'org.hibernate.exception.GenericJDBCException' exception.这个错误是Hibernate懒加载导致的:https://l...
2019-12-22 20:48:21
659
原创 POI导入导出excle
java代码:import cn.afterturn.easypoi.excel.ExcelExportUtil;import cn.afterturn.easypoi.excel.ExcelImportUtil;import cn.afterturn.easypoi.excel.entity.ExportParams;import cn.afterturn.easypoi.exce...
2019-08-13 16:38:23
368
原创 js子弹窗调用父弹窗下另一子弹窗方法
关系图:父弹窗: A子弹窗: B,C功能描述:B弹窗通过调用父弹窗A的方法来调用C弹窗的方法代码:B弹窗代码function changeC(){ parent.fatherTransSon('test', param); }A弹窗代码<div data-options="re...
2019-07-22 20:55:44
210
转载 Ubuntu16.04编译OpenJDK1.7源码
Ubuntu16.04编译OpenJDK1.7源码一、环境准备安装Bootstrap JDK在安装之前先确定系统有没有自带jdk(java -version查看如果有版本信息则安装了,需要卸载)如果有,要先卸载由于我编译的是OpenJDK 7,所以安装的是java version “1.7.0_95”OpenJDK Runtime Environment (IcedTea 2.6.4...
2019-01-30 18:43:47
380
原创 myBAtis怎么获得ID自增长的值
sql中加入selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER"> SELECT LAST_INSERT_ID()selectKey>其中keyProperty的值根据自己的情况修改dao层获取id:public long insert(对象) { super.inse
2017-10-17 16:05:26
398
原创 Cause: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timesta
错误信息: java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date解决办法: 数据库date类型的字段插入了'0000-00-00'的值,将其改为正常date值。
2017-10-13 10:41:12
2440
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人