Spring Data JPA【JpaSpecificationExecutor】多条件动态查询简单示例
1.表结构CREATETABLE`user`(`uid`int(11)NOTNULLAUTO_INCREMENT,`username`varchar(255)NOTNULL,`password`varchar(255)NOTNULL,PRIMARYKEY(`uid`),UNIQUEKEY`UK_USER_NAME`(`username`))ENGINE=InnoDBAUTO_INCREMENT=2