springboot +shiro +springsecurity + swagger + thymeleaf +IDEA快捷键 +HTTP状态码+ 杂项整合笔记

本文详细介绍了HTTP状态码的各个类别及其常见代码,包括2xx成功、3xx重定向、4xx请求错误和5xx服务器错误。同时,文章结合SpringBoot,讲解了如何在实际开发中运用这些知识,涉及到SpringSecurity、Shiro的配置以及IDEA的快捷键等实用技巧。
摘要由CSDN通过智能技术生成

//视频播放速度更改速度代码 document.querySelector(‘video’).playbackRate = 3

springsecurity
1.WebSecurityConfigurerAdapter 自定义Security策略
2.AuthenticationManagerBuilder 自定义认证策略
3.@EnableWebSecurity 开启Security

认证 Authentication
授权 Authorization
shiro 三要素:
1.Subject 用户
2.SecurityManager 管理所有用户
3.Realm 连接数据

anon:无需认证就可以访问
authc:必须认证才能访问
user:必须拥有记住我功能才能访问
perms:拥有对某个资源的权限才能访问
role:拥有某个角色的权限才能访问

<!--==========swagger=============-->

<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui -->
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.9.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/io.springfox/springfox-swagger2 -->
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger2</artifactId>
    <version>2.9.2</version>
</dependency>

<!--============================-->

```java
(  ).select().apis(RequestHandlerSelectors.
               //basePackage :指定扫描的包 basePackage("com.abk.controller")
               //any:扫描全部
               //none:不扫描
               //withClassAnnotation:扫描类上的注解 参数是一个注解的反射对象 withClassAnnotation(RequestMapping.class)
              
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值