![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
文章平均质量分 82
码农九珍
这个作者很懒,什么都没留下…
展开
-
Spring Data JPA:解析CriteriaBuilder
源码在Spring Data JPA相关的文章[地址]中提到了有哪几种方式可以构建Specification的实例,该处需要借助CriteriaBuilder,回顾一下Specification中toPredicate方法的定义,代码如下: /** * Creates a WHERE clause for a query of the referenced entity in form of a {@link Predicate} for the given * {@li原创 2021-08-29 13:38:04 · 1664 阅读 · 0 评论 -
SpringBoot - 集成Auth0 JWT
前言说说JWT,先说下互联网服务常见的两种用户认证方式:session认证与Token认证session认证传统的Session认证的大体流程可以表示为用户提供用户名和密码登录后由服务器存储一份用户登录信息并传递给浏览器保存为Cookie,并在下次请求中根据Cookie来识别用户,但这种方式缺陷明显:Session都是保存在内存中,随着认证用户的增多,服务端的开销明显增大 保存在内存中的Session限制了分布式的应用 Cookie容易被截获伪造Token认证Token 泛原创 2021-08-19 20:33:26 · 2084 阅读 · 0 评论