/**
* @Column表示列的说明
* lentth 列的长度
* nullable是否可以为null值 默认为ture
*/
@Column(length = 20,nullable = false)
private String name;
* @Column表示列的说明
* lentth 列的长度
* nullable是否可以为null值 默认为ture
*/
@Column(length = 20,nullable = false)
private String name;
2019-07-05
Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: EntityPathResolver must not be null!
2019-04-26
Repository查询方法的规则定义:https://images2017.cnblogs.com/blog/779102/201707/779102-20170729001326368-156348206.png
2019-04-23
create table student(
id int not null auto_increment,
name varchar(20)not null,
age int not null,
primary key(id)
);
insert into student(name,age) values("zhangsan",20);
insert into student(name,age) values("lisi",21);
insert into student(name,age) values("wangwu",22);
id int not null auto_increment,
name varchar(20)not null,
age int not null,
primary key(id)
);
insert into student(name,age) values("zhangsan",20);
insert into student(name,age) values("lisi",21);
insert into student(name,age) values("wangwu",22);