![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
qq_40265503
这个作者很懒,什么都没留下…
展开
-
springboot写Filter
1、创建一个实现Filter接口的过滤器类,并添加springboot注解。package sibd.filter; import javax.servlet.*; import javax.servlet.annotation.WebFilter; import java.io.IOException; /** * Description: * Cteated by yangbin *...原创 2018-04-26 09:47:57 · 341 阅读 · 1 评论 -
springboot在配置的filter类中注入bean
@WebFilter(urlPatterns = "/*") @Order(Integer.MAX_VALUE-2) public class SSOFilter implements Filter { // @Value("${allowUrls}") //private String str; private static String[] allowUrls; ...原创 2018-12-28 15:08:10 · 4373 阅读 · 0 评论 -
session采坑
1、localhost和127.0.0.1产生的session是不同的。 2、window.location.href的页面session会失效。 解决方案: location.href页面路径携带当前页面上的session_id原创 2018-12-28 15:41:47 · 150 阅读 · 0 评论