- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 SpringBoot + MyBatis如何优雅地动态设置数据源
SpringBoot + MyBatis如何优雅地动态设置数据源 前言: 1.Mybatis创建session()主要通过SqlSessionFactory,一般整个系统的生命周期里面只有一个SqlSessionFactory实例; 2.SqlSessionFactory是一个接口,Mybatis目前使用的实现类是DefaultSqlSessionFactory; 3.DefaultSql...
2020-03-15 22:13:07
350
原创 SpringBoot + SpringSecurity+JWT整合(微服务适用)
SpringSecurity基于表单的登录认证流程如下图: 大致过程是在UsernamePasswordAuthenticationFilter将username和password封装成UsernamePasswordAuthenticationToken,之后会在AuthenticationProvider(接口,需要自己实现)的authenticate方法中拿到且校验(一般是查数据库,对比账号密码),而校验成功则返回Authentication接口对象(一般情况是直接返回UsernamePassw
2021-09-26 23:47:13
1514
1
html编辑器.zip
2019-09-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅