自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 使用spring-security-test自定义注解测试SpringBoot应用

@WithMockUser如果不使用自定义Authentication,这是一个绝佳的选择。但是项目中总有一些特殊的情况,就需要我们自定义实现:首先创建一注解@WithSecurityContext factory属性指向一个自定义Facotry@Target({ ElementType.METHOD, ElementType.TYPE })@Retention(RetentionPolicy.RUNTIME)@Inherited@Documented@WithSecurity..

2021-03-01 09:42:49 1177

原创 SpringBoot 整合 Spring Security 、JWT 实现认证、权限控制

引入依赖包(gradle) maven 请自行转换dependencies { compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starte...

2021-02-16 13:43:39 1426

原创 Springboot Shiro 整合 Jwt 实现权限登录、控制

加入 maven 依赖 <dependency> <groupId>org.apache.shiro</groupId> <artifactId>shiro-spring</artifactId> <version>1.4.0</version> </dependency> <depe

2020-11-27 09:57:25 316

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除