![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
踩坑日记
文章平均质量分 92
抠脚的大灰狼
这个作者很懒,什么都没留下…
展开
-
踩坑日记(异步线程异常消失 & RequestContextHolder)
在一个SpringMVC项目里,通常我们可以使用如下代码来获取和当前线程绑定的HttpServletRequest对象:HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.currentRequestAttributes()).getRequest();最近在公司的项目开发中,模块A负责统...原创 2020-02-11 20:18:25 · 2303 阅读 · 0 评论 -
踩坑日记(Open-Session-In-View And Hibernate LazyInitializationException,AOP 失效)
Hibernate 懒加载 的LazyInitializationException 的坑关于jpa的session:The open session in view anti-pattern is enabled by default in Spring Boot(both 1.x and 2.x),where a Hibernate session is created and bou...原创 2020-01-18 17:03:49 · 513 阅读 · 0 评论