- 博客(7)
- 资源 (7)
- 收藏
- 关注

原创 Spring Security 之 StrictHttpFirewall 坑
这个防火墙有个坑啊 啊 啊。。。。。事情原由:项目初次引入security为swagger相关页面做验证异常:org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL was not normalized.解决:解决方...
2019-10-14 16:03:45
4352
4
原创 synchonized
synchonized特性:1.出现异常,释放锁2.同步不具有继承性加锁方式:synchonized方法或synchonized(this/class)同步方法与同步块的异同:1.在执行效率上: 同步方法的执行依赖于与方法的执行效率,同步代码块可以封装剔除冗余逻辑2.锁的类型上 同步方法使用当前对象作为监视器,同步代码块可以使用任何对象作为监视器同步代码...
2019-12-13 11:22:15
223
原创 Spring Security 原理
spring security 在web应用中是基于filter的;Filter:spring security 维护了一个filter chain,chain中的每一个filter都具有特定的责任,并根据所需的服务在配置中添加。filter的顺序很重要,因为他们之间存在依赖关系。spring security中有如下filter(按顺序的):ChannelProcessingFilt...
2019-12-13 11:21:53
188
转载 Spring Security 学习
Spring Secutity核心组件 SecurityContext、SecurityContextHolder、Authentication、Userdetails 和 AuthenticationManager相关组件介绍:1.Authenticationpublic interface Authentication extends Principal, Serial...
2019-09-29 14:46:54
259
原创 线程中断一(异常法)
首先阐述几个关键字1.interrupter() //线程调用,中断给当前线程设置中断标记(并非立即中断线程)2.interrupted()//静态方法 调用该方法返回当前线程是否终止 该方法具有清除终止状态的功能3.isInterrupted()//线程实例调用,返回线程实力是否终止利用终止关键字完成《异常法终止线程》public class demo2 { ...
2019-09-18 14:36:46
841
转载 Thread.currentThread().getName()与this.getName()区别
引用文章已做详细解释请学习以下本文仅作学习记录:currentThread是指当前调用代码块的线程(与引用文章中所指的“正在发生这个作用的实体”相对应)this是指类的实例对象,相关信息都是new产生的对象的信息(可以修改)package demo01;public class demo01 { public static void main(String[] arg...
2019-09-16 16:36:38
584
原创 RPC 测试报错Unkown protocol(com.boco.hadoop.client.LoginServiceInterface)
瞎碰终于找到原因了 下图为项目的目录结构(包含服务端与客户端) LoginControllerer.java代码如下:public class LoginController { public static void main(String[] args) throws Exception { LoginServiceInterfac
2017-09-07 13:39:55
724
1
flutter_sdk.txt
2019-11-30
Insomnia Rest Client 6.3.2
2019-03-26
Redis-x64-3.2.100 windows
2019-03-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人