05 2021 档案

摘要:不同的微服务之间相互调用,不可避免会使用到feign client。为了统一处理参数和请求地址等变化,我们一般会将这些API服务的请求参数dto、响应dto及Feign接口封装在一个公共的dto项目中(为了防止jar包冲突和依赖传递,这里的feign starter包的作用域是provided),调 阅读全文
posted @ 2021-05-26 18:59 蜀中孤鹰 阅读(1229) 评论(0) 推荐(0)
摘要:在WebSecurityConfigurerAdapter#configure(HttpSecurity)方法中配置session管理没有效果,因为我们使用了自己的AuthenticationFilter,只能手动给LoginFilter配置SessionAuthenticationStrategy 阅读全文
posted @ 2021-05-26 18:56 蜀中孤鹰 阅读(813) 评论(0) 推荐(0)
摘要:这是我自定义的UserDetails,这个user对象会保存到数据库。 //自定义的User @Entity(name = "t_user") public class User implements UserDetails, CredentialsContainer { @Id @Generate 阅读全文
posted @ 2021-05-26 18:55 蜀中孤鹰 阅读(675) 评论(0) 推荐(0)
摘要:spring security 在使用自定义的AuthenticationFilter时,提示Invalid remember-me cookie,自动登录失败的解决方法 后台日志报错提示 Invalid remember-me cookie: Cookie token[2] contained s 阅读全文
posted @ 2021-05-26 18:54 蜀中孤鹰 阅读(640) 评论(0) 推荐(0)
摘要:流程图 Aware接口分类 Aware Group1 BeanNameAware BeanClassLoaderAware BeanFactoryAware Aware Group2 EnvironmentAware EmbeddedValueResolverAware //该接口能够获取Sprin 阅读全文
posted @ 2021-05-26 18:51 蜀中孤鹰 阅读(129) 评论(0) 推荐(0)

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