
Web
baozhutang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
记一次Could not get JDBC Connection、java.lang.InterruptedException问题排查
现象: 本地自测的一次http的请求中,使用mybatis执行的sql查询,报错如下: ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; neste...原创 2019-05-25 15:26:10 · 8967 阅读 · 1 评论 -
Filter 返回 json 数据
在Filter中返回json数据,网上搜到的都是通过response获取流,再写入数据。 这边提供另外一个方法,通过“forward”来实现。将请求forward到Controller,Controller中返回json。 @Component public class Filter1 extends OncePerRequestFilter { private static fi...原创 2019-05-22 14:49:16 · 4377 阅读 · 1 评论