摘要: 5.1 SpringSecurity 的过滤器介绍 SpringSecurity采用的是责任链的设计模式,它有一条很长的过滤器链。现在对这条过滤器链的15个过滤器进行说明 WebAsyncManagerIntegrationFilter:将Security 上下文与Spring Web 中用于处理异 阅读全文
posted @ 2021-04-18 23:38 我係死肥宅 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 4.1 什么是微服务 1)微服务由来 微服务最早由Martin Fowler与James Lewis于2014年共同提出,微服务架构风格是一种使用一套小服务来开发单个应用的方式途径,每个服务运行在自己的进程中,并使用轻量级机制通信,通常是HTTP API,这些服务基于业务能力构建,并能够通过自动化部 阅读全文
posted @ 2021-04-18 19:19 我係死肥宅 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 3.1 设置登录系统的账号、密码 方式一:在 application.properties spring.security.user.name=atguigu spring.security.user.password=atguigu 方式二:编写类实现接口 package com.atgugui. 阅读全文
posted @ 2021-04-18 19:17 我係死肥宅 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 2.1 创建一个项目 编写一个Controller package com.atgugui.securitydemo1.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springfr 阅读全文
posted @ 2021-04-18 19:13 我係死肥宅 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1.1 概要 Spring 是非常流行和成功的 Java 应用开发框架,Spring Security 正是 Spring 家族中的成员。 Spring Security 基于 Spring 框架,提供了一套 Web 应用安全性的完整解决方案。 正如你可能知道的关于安全方面的两个主要区域是**“认证 阅读全文
posted @ 2021-04-18 19:11 我係死肥宅 阅读(114) 评论(0) 推荐(0) 编辑