1. 前言 原本打算把Spring Security中OAuth 2.0的机制讲完后,用小程序登录来实战一下,发现小程序登录流程和Spring Security中OAuth 2.0登录的流程有点不一样,就把写了半天的东西全部推翻了。但是,但是过了一天之后,突然感觉又可以了。我们来一起试一试。 2. ...
分类:
微信 时间:
2021-03-06 14:19:03
阅读次数:
0
我主要参考这篇文章来搭建easy-mock,但是在自己搭建的过程中遇到一些其它的问题,所以写了这边文章来记录搭建的细节,也算是对这篇文章的补充吧。 搭建easy-mock主要分成两种途径:一、需要分别安装node、mogonDB、Redis,而且node 的版本不能超过v9;二、基于docker-c ...
# -*- coding: utf-8 -*- """ File Name: conf.py Description : 读取当前文件上级目录conf 内hcs_conf.yaml的内容,返回yaml 对象 Author : jiaoyaxiong date: 2019/7/22 Change Ac ...
分类:
其他好文 时间:
2021-03-05 13:08:41
阅读次数:
0
import java.io.File; import java.io.IOException; /* 获取指定文件夹下所有文件名并打印输出, */ public class FileDemo01 { public static void main(String[] args) throws IOE ...
分类:
编程语言 时间:
2021-03-04 13:11:12
阅读次数:
0
static int tcp_open_socket(unsigned short port, const char *bindaddr, const char *ifname){ int fd = -1, n, af, opt; struct sockaddr_in si; struct sock ...
分类:
其他好文 时间:
2021-03-03 12:28:42
阅读次数:
0
Some think we can acquire knowledge from news reports. Others believe we cannot trust journalists. What do you think? What important qualities should ...
分类:
其他好文 时间:
2021-03-02 12:39:13
阅读次数:
0
Pytest源码分析 By:授客 QQ:1033553122 测试环境 pytest 5.4.3 测试脚本mytest.py #!/usr/bin/env python # -*- coding:utf-8 -*- import pytest def test_func(): # test开头的测试 ...
分类:
其他好文 时间:
2021-03-02 12:31:05
阅读次数:
0
异常: java.lang.IllegalArgumentException: When allowCredentials is true, allowedOrigins cannot contain the special value "*"since that cannot be set on ...
分类:
编程语言 时间:
2021-03-02 12:28:35
阅读次数:
0
win快捷键 dos命令 #盘符切换 :直接输入盘符 #查看当前目录下的所有文件 dir #切换目录 cd change directory #上一级 cd.. #清理屏幕 cls #推出终端 exit #查看电脑IP ip config #打开计算器 calc #画图 mspaint #记事本 n ...
本地安装的是Python 3.7,拿到的是Python 3.8的项目,一运行报:Cannot run program "D:\python\python.exe" ,这个路径是别人电脑上的Python解析器路径,而我本地根本没有这个路径 解决办法:关闭Pycharm,然后将项目下的.idea文件删除 ...
分类:
编程语言 时间:
2021-03-02 12:11:15
阅读次数:
0