12 2020 档案

摘要:###一、使用注解 假设Filter类的路径为com.sanro.filter @Slf4j @WebFilter(filterName = "authFilter", urlPatterns = "/*") @Order(1) //测试好像这个参数不生效,实际生效的是Filter扫描到的顺序(所以 阅读全文 »
posted @ 2020-12-18 13:29 MaskerFan 阅读(323) 评论(0) 推荐(0) 编辑
摘要:####新增配置文件logback-spring.xml <?xml version="1.0" encoding="UTF-8"?> <configuration debug="false"> <!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径--> <property n 阅读全文 »
posted @ 2020-12-17 11:00 MaskerFan 阅读(1741) 评论(0) 推荐(0) 编辑
摘要:开放防火墙端口 firewall-cmd --zone=public --add-port=8887/udp --permanent firewall-cmd --zone=public --add-port=8887/tcp --permanent systemctl restart firewa 阅读全文 »
posted @ 2020-12-17 10:31 MaskerFan 阅读(126) 评论(0) 推荐(0) 编辑
摘要:####在 Spring Security 初始化核心过滤器时 HttpSecurity 会通过将 Spring Security 内置的一些过滤器以 FilterComparator 提供的规则进行比较按照比较结果进行排序注册。 #####排序规则 FilterComparator() { Ste 阅读全文 »
posted @ 2020-12-16 15:38 MaskerFan 阅读(1077) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示