摘要: //13年写的,今天(17)拷贝到博客园package com.sicdt.sicsign.web.utils; import java.io.Serializable; import java.util.List; /** * @author shizhenwei * * @param 用于向前台返还List所用 */ public class PageInfo implement... 阅读全文
posted @ 2018-02-27 15:08 七脉 阅读(336) 评论(0) 推荐(0)
摘要: 1.编写拦截器,实现HandlerInterceptor接口 2.配置拦截适配器 并定义拦截范围 阅读全文
posted @ 2018-02-27 15:02 七脉 阅读(593) 评论(0) 推荐(0)
摘要: //获取responseHttpServletResponse response = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getResponse(); //获取request HttpServletRequest response = ((ServletRequestAttributes... 阅读全文
posted @ 2018-02-27 14:49 七脉 阅读(267) 评论(0) 推荐(0)
摘要: Spring全局异常捕捉类 注解@ControllerAdvice package com.sicdt.sicsign.web.bill.controller; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.Excep... 阅读全文
posted @ 2018-02-27 14:36 七脉 阅读(665) 评论(0) 推荐(0)
摘要: SpringBoot+Redis实现HttpSession共享 (2)8082 (3)8081添加session信息,name="丁洁" (4)再次查看8081和8082的session信息 (5)清除8082的session name 再分别查看8081和8082的session信息 二、源码分享 阅读全文
posted @ 2018-02-27 14:05 七脉 阅读(513) 评论(0) 推荐(0)