备用: 在调试一个前后端分离的项目,发现登录成功后已经把信息保存到session中了,再从session中取得当前用户信息的时候发现取不到,debug发现sessionId已经变了,自己网上查了很多资料,并不准确, 把自己的解决分享给大家: 后端拦截器: //拦截器添加跨域支持(如果是web.xml ...
分类:
其他好文 时间:
2021-02-05 10:40:40
阅读次数:
0
import threading import gitlab import xlwt #获取所有的user def getAllUsers(): usersli = [] client = gitlab.Gitlab(private_host, private_token=private_token ...
分类:
编程语言 时间:
2021-02-05 10:40:09
阅读次数:
0
springsecurity实现自动登录很简单,人家让我们配置一下就好了 1.首先得要有数据源 和 操作数据库的对象,只有这两个才能往表中写token;在配置类中注入数据源,在容器中加入 操作数据库的对象 @Configuration public class SecurityConfig exte ...
分类:
编程语言 时间:
2021-02-05 10:38:01
阅读次数:
0
SSH: Disconnecting configuration [192.168.2.68] ... ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after 120,0 ...
分类:
其他好文 时间:
2021-02-05 10:37:04
阅读次数:
0
判断服务是否存在,存在就直接启动,不存在则创建后启动,引号里的内容替换成自己的服务名即可 @echo off sc query SAVUS_SFCJSService |findstr /i "STATE">nul if not errorlevel 1 (goto exist) else goto ...
ingress 增加跨域 第一种: kubectl get ingresses. -n rrzhibo-admin test-rrzb-apiadmin-gateway-http-ingress -o yaml apiVersion: extensions/v1beta1 kind: Ingress ...
分类:
其他好文 时间:
2021-02-04 12:05:53
阅读次数:
0
let require = ()=>{throw new Error('函数必须传参')} let print = (num=require())=>{console.log(num)} print(2) // 2 print(null) // null print() // 报错 ...
分类:
其他好文 时间:
2021-02-04 11:52:57
阅读次数:
0
单点登录中目前比较流行的一种使用方式,就是springsecurity+jwt实现无状态下用户登录;下面是对于Spring-Security进行单点登录使用token来进行交互的一种方式。第一次写博客请多多指教如果有更好的方式或者是错误的点麻烦请指教。 Spring-Security的主要几个实现类 ...
分类:
编程语言 时间:
2021-02-04 11:52:26
阅读次数:
0
版本信息:Navicat Premium 15.0.12 错误情况: 用Navicat连接Oracle数据库时报错ORA-28547:connection to server failed,probable Oracle Net admin error 解决方案: 1、到下面网址下载OCI http ...
分类:
数据库 时间:
2021-02-04 11:46:08
阅读次数:
0
appium启动公司app报错如下,但是启动像企业微信、微信都是没有问题的; remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original e ...
分类:
移动开发 时间:
2021-02-03 11:09:40
阅读次数:
0