摘要: Spring Social 一、OAuth协议: 在不向第三方应用提供账号、密码的情况下,允许其访问资源所有者特定资源所使用的协议,例如微信授权登录。 最常用的有 授权码模式、密码模式 二、Spring Social基本原理: 1、SocialAuthenticationFilter将其拦截下来,并 阅读全文
posted @ 2023-08-18 17:27 咔咔皮卡丘 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Spring Security 一、默认配置 1、默认会对所有请求都需要进行认证与授权; 2、默认使用httpBasic方式进行登录 3、默认的用户名为user,密码在启动应用时在console中有打印 4、自定义配置: package com.imooc.security.browser; imp 阅读全文
posted @ 2023-08-18 10:56 咔咔皮卡丘 阅读(74) 评论(0) 推荐(0) 编辑
摘要: RESTful 一、JsonPath 1、github:https://github.com/json-path/JsonPath 二、@JsonView使用步骤(用于解决同一个对象在不同的接口返回的字段不同的场景) 1、使用接口来声明多个视图2、在值对象的get方法上指定视图3、在Controll 阅读全文
posted @ 2023-08-18 10:24 咔咔皮卡丘 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一、什么是Spring Cloud 1、功能:配置管理、服务注册、服务发现、断路器、智能路由、负载均衡、服务间调用、微代理、一次性令牌、思维导图模板、全局锁、领导选举、分布式消息、分布式会话、集群状态 2、Spring Cloud 与 Spring Boot 的关系 Spring Boot 是构建 阅读全文
posted @ 2023-08-18 10:20 咔咔皮卡丘 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 一、spring boot 初始化工程 1、网址:https://start.spring.io 二、Gradle 安装(绿色版) 1、windows下 -下载:http://downloads.gradle.org/distributions/gradle-3.5-bin.zip -解压: -配置 阅读全文
posted @ 2023-08-18 10:06 咔咔皮卡丘 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 一、lunix系统(centos7) 系统:http://mirrors.aliyun.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso 软件源:http://mirrors.aliyun.com 软件源配置:https://opsx.ali 阅读全文
posted @ 2023-08-18 09:56 咔咔皮卡丘 阅读(209) 评论(0) 推荐(0) 编辑