上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 50 下一页
摘要: 负责处理登出相关逻辑,默认url映射是/logout org.springframework.security.config.annotation.web.configurers.LogoutConfigurer 初始化 默认初始化处https://www.cnblogs.com/LQBlog/p/ 阅读全文
posted @ 2021-11-10 15:22 意犹未尽 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 提供我们在Filter链 执行之前或者之后往Header写入内容 通过HttpSecurity 可以指定 默认是在之后调用 http.headers().addHeaderWriter() 通过org.springframework.security.config.annotation.web.co 阅读全文
posted @ 2021-11-10 10:39 意犹未尽 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 主要是在认证 Filter链执行之前 维护SecurityContextHolder 方便我们后续通过SecurityContextHolder.getContext()获取当前会话用户信息 通过SecurityContextConfigurer初始化 默认设置源码处:https://www.cnb 阅读全文
posted @ 2021-11-09 16:49 意犹未尽 阅读(908) 评论(0) 推荐(0) 编辑
摘要: 作用 我们获取当前登录用户信息是根据SecurityContextHolder.getContext()获取的,SecurityContextHolder.getContext()本质是ThreadLocal实现 Spring MVC WebAsyncTask是异步另外一个线程 所以用于保证我们在T 阅读全文
posted @ 2021-11-09 14:15 意犹未尽 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 说明 线上出现异常,但是查看节点状态正常,因为使用了容器,挂掉了会重启。因为jvm配置了-XX:HeapDumpOnOutOfMemoryError 参数,出现OMM就会将当时线程和jvm内存情况转存起来可参考:jmv参数配置 排查 1.将运维发过来的hprof导入到 vm 可参考 直通车 3.我们 阅读全文
posted @ 2021-11-06 10:55 意犹未尽 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 时序图 @startuml participant "security starter" as sb participant "WebSecurityConfiguration" as wc participant "webSecurity" as ws participant "WebSecuri 阅读全文
posted @ 2021-11-04 15:04 意犹未尽 阅读(1358) 评论(0) 推荐(0) 编辑
摘要: 基于注解 需要配置启用@EnableGlobalMethodSecurity(prePostEnabled = true,securedEnabled = true) prePostEnabled: 确定 前置注解[@PreAuthorize,@PostAuthorize,..] 是否启用 secu 阅读全文
posted @ 2021-11-03 19:27 意犹未尽 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 说明 ConfigurationClassPostProcessor.class主要解决的问题就是去处理spring定义的一些配置注解,例如@Configuration,@Import,@ComponentScan,@Bean等。 源码调用时机从https://www.cnblogs.com/LQB 阅读全文
posted @ 2021-10-30 15:57 意犹未尽 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.之前一直用redis.经常读出缓存然后根据需求修改读出的缓存数据,没有任何问题 2.为了保证性能,在redis加了一层guava 应用缓存,但是操作缓存VO的时候 需要根据经纬度对缓存里面的数据进行修改。 但是用习惯了redis,忘记了修改应用缓存,应用缓存相同key都是引用的同一个对象,导致其 阅读全文
posted @ 2021-10-28 18:15 意犹未尽 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 类图 我们默认单线程就是使用SimpleJob 如我们job创建过程,当然我们有需求可以自定义 /** * 主要 * @return * @throws Exception */ @Bean public Job footballJob() throws Exception { Job job= m 阅读全文
posted @ 2021-10-22 18:00 意犹未尽 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 50 下一页