![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringSecurity
文章平均质量分 52
JohnGea
这个人不懒,他写了简介
展开
-
2.使用SpringSecurity进行认证和授权
认证和授权环境搭建导入静态资源链接:https://pan.baidu.com/s/1j1mx6k9uMfk9JWoV2-sGAA提取码:john复制这段内容后打开百度网盘手机App,操作更方便哦新建Controller,接收web端url请求package com.boot.controller;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annot原创 2021-05-12 20:56:03 · 292 阅读 · 0 评论 -
1.认识SpringSecurity
认识SpringSecuritySpring Security 是针对Spring项目的安全框架,也是Spring Boot底层安全模块默认的技术选型,他可以实现强大的Web安全控制,对于安全控制,我们仅需要引入 spring-boot-starter-security 模块,进行少量的配置,即可实现强大的安全管理!记住几个类:WebSecurityConfigurerAdapter:自定义Security策略AuthenticationManagerBuilder:自定义认证策略@Enab原创 2021-05-12 20:29:38 · 80 阅读 · 0 评论