- 博客(5)
- 收藏
- 关注
原创 Boolean.valueOf(false)和boolean
今天在做网站开发的时候,遇到一个地方传递false是使用Boolean.valueOf(false),就很奇怪为什么不直接用boolean,查询后发现Boolean是boolean的一个封装类相比较boolean来说,Boolean有更多的方法,并且Boolean是一个类,是对基本数据类型的封装...
2020-04-13 08:54:06
527
原创 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
163
原创 hibernate异常积累之java.lang.StackOverflowError
@Entitypublic 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
201
原创 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
97
原创 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
318
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人