- 博客(4)
- 收藏
- 关注
原创 swagger报:No operations defined in spec!
swagger报:No operations defined in spec!
2022-06-13 10:50:52
573
原创 @PreAuthorize注解不起作用?
1.将prePostEnabled设置为true:@EnableGlobalMethodSecurity(prePostEnabled=true) 2.如果还是不起作用查看是否缺少aop依赖(小编当时不起作用就是缺少这个依赖): spingboot中 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>.
2021-09-03 16:02:40
3099
3
原创 @PreAuthorize、@Secured、 @RolesAllowed优先级
结论: 在spring-security-5.1.6中 @PreAuthorize>@Secured>@RolesAllowed依次屏蔽; 上代码: 项目启动 {@link org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration#methodSecurityMetadataSource} 中解析 @EnableGlobalMethodSec
2021-09-03 15:47:15
481
原创 在线代码生成工具 自定义模板
步骤一:新增数据库 步骤二:导入数据库表信息 步骤三:编辑表信息 步骤四:代码生成 步骤五:预览代码 步骤六.下载代码
2021-06-07 11:40:08
286
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅