自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Boolean.valueOf(false)和boolean

今天在做网站开发的时候,遇到一个地方传递false是使用Boolean.valueOf(false),就很奇怪为什么不直接用boolean,查询后发现 Boolean是boolean的一个封装类 相比较boolean来说,Boolean有更多的方法,并且Boolean是一个类,是对基本数据类型的封装 ...

2020-04-13 08:54:06 497

原创 com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException:

错误信息 com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Le champ 'userid' ne peut ??tre vide (null) 问题出现在userid为空上

2020-03-03 16:00:55 132

原创 hibernate异常积累之java.lang.StackOverflowError

@Entity public class Student { @Id @GeneratedValue(strategy=GenerationType.AUTO) private Integer id; private Timestamp date; private String room; @OneToOne(cascade=CascadeType.ALL) private Pe...

2020-02-28 15:25:09 170

原创 hibernate关系数据库的配置学习

双向关联的1对1关系: public class People { private Integer id; private String name; private int age; private Student student; } public class People { private Integer id; private String name; private in...

2020-02-27 16:17:09 70

原创 hibernate中1对1关系出现外键值为null

public class People { private Integer id; private String name; private int age; private Student student; //get和set方法 } public class Student { private Integer id; private Timestamp date; pr...

2020-02-27 14:52:31 283

空空如也

空空如也

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

TA关注的人

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