```javapackage com.atguigu.security.config;import javax.sql.DataSource;import org.springframework.beans.factory.annotation.Autowired;import org.spring... ...
分类:
编程语言 时间:
2020-04-27 09:14:11
阅读次数:
59
一.新建项目 1.首先新建一个 Spring Boot 项目,创建时引入 Spring Security 依赖和 web 依赖,如下图: 2.项目创建成功后,Spring Security 的依赖就添加进来了,在 Spring Boot 中我们加入的是 spring-boot-starter-sec ...
分类:
编程语言 时间:
2020-04-26 14:02:44
阅读次数:
62
环境变量:/etcprofile;/etc/bashrc;~/.bash_profile;~/.bashrc;~/.bash_logout ...
分类:
其他好文 时间:
2020-04-25 17:36:35
阅读次数:
63
"上一篇文章:Gateway使用入门" GateWay作为网关路由是挡在了我们的系统最前边,进行动态路由配置和转发。那么我们就可以在网关层进行网关鉴权。 https://cloud.spring.io/spring cloud gateway/2.2.x/reference/html/ Gatewa ...
分类:
编程语言 时间:
2020-04-15 00:26:32
阅读次数:
1044
模拟根据登录情况判断要显示的欢迎界面 import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * ...
分类:
其他好文 时间:
2020-04-13 16:54:33
阅读次数:
68
一、Spring Security介绍 1.Spring Security 是 Spring 项目组中用来提供安全认证服务的框架,安全包括两个主要操作: 1)“认证”,是为用户建立一个他所声明的主体。主题一般式指用户,设备或可以在你系 统中执行动作的其他系统。 2)“授权”,指的是一个用户能否在你的 ...
分类:
编程语言 时间:
2020-04-07 18:24:41
阅读次数:
74
<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> <version>3.2.3.RELEASE</version> </dependen ...
分类:
编程语言 时间:
2020-04-07 12:24:24
阅读次数:
78
1. 403是被服务器拒绝了,一般是spring security造成的,springsecurity会开启跨域认证,所以不关闭这个的话会访问api会出现403错误 2.解决 @Override protected void configure(HttpSecurity http) throws E ...
分类:
编程语言 时间:
2020-04-05 15:20:23
阅读次数:
147
1. 新建项目 引入 和`security`包 完整的 文件如下 2. 编写启动类和控制器方法和自定义登录页面 3. 编写配置类 4. 运行结果 当输入密码错误时 当输入密码正确时 ...
分类:
编程语言 时间:
2020-04-05 11:36:05
阅读次数:
72
timed out waiting for input: auto-logout ...
分类:
系统相关 时间:
2020-04-04 00:25:01
阅读次数:
332