hashlib — Secure hashes and message digests — Python 3.8.3 documentation https://docs.python.org/3.8/library/hashlib.html For better multithreading pe ...
分类:
编程语言 时间:
2020-05-29 21:46:45
阅读次数:
110
最近创建一个测试服务商,使用了之前的数据库备份,结果手机端访问时一直报这个错, 一、根据官网解决思路: redirect_url未登记可信域名。请确认:1)颁发code的场景在哪个应用点击的。消费code使用的access_token是否有该应用权限。(通过查询access_token权限可确认)2 ...
分类:
微信 时间:
2020-05-29 20:57:12
阅读次数:
407
.antMatchers("/**").access("#oauth2.hasScope('scope1')")上面这行代码,只是控制大范围的访问权限,具体到方法级的访问 还得看permission 以上教程代码顺序如下: 网关服务: 1.application.properties #zuul不传 ...
分类:
其他好文 时间:
2020-05-29 13:41:11
阅读次数:
70
一、获取access_token wx.request({ url: 'https://api.weixin.qq.com/cgi-bin/token', method : 'GET', data : { grant_type: 'client_credential', appid: '小程序的ap ...
分类:
微信 时间:
2020-05-29 12:07:42
阅读次数:
373
授权得客户端信息、授权码信息全都存在数据库 1.建表 官方给了个sql文件:https://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-oauth2/src/test/resources/s ...
分类:
数据库 时间:
2020-05-29 10:08:12
阅读次数:
143
使用Ajax跨域请求资源,Nginx作为代理,出现:The 'Access-Control-Allow-Origin' header contains multiple values '*, *', but only one is allowed 错误。 服务端允许跨域配置: #region 设置允 ...
分类:
数据库 时间:
2020-05-28 19:33:40
阅读次数:
290
当然,我们也可以使用 find 命令查找并删除超过 x 天未访问的文件,不过 tmpwatch 可以一步到位,何乐而不为? tmpwatch 默认根据文件或目录的访问时间(access time)来决定删除哪些文件或目录。除此之外,你还可以根据 inode 改变时间(inode change tim ...
分类:
系统相关 时间:
2020-05-28 13:39:33
阅读次数:
76
1.根据访问IP统计UV awk '{print $1}' access.log|sort | uniq -c |wc -l 2.统计访问URL统计PV awk '{print $7}' access.log|wc -l 3.查询访问最频繁的URL awk '{print $7}' access.l ...
分类:
其他好文 时间:
2020-05-28 13:09:14
阅读次数:
60
开启监控模块 配置访问地址 location /nginxstatus { stub_status on; // 禁止将监控信息写入访问日志 access_log off; } 激活插件http_stub_status_module cd /usr/local/src/nginx-1.18.0 # ...
分类:
其他好文 时间:
2020-05-28 00:40:20
阅读次数:
97
有的时候我们需要在自己创建的AOP上面使用接口,比如我使用了Aspect-Injector,Aspect-Injector的自定义切面继承了Attribute,没办法在构造函数注入,这时候就可以用到依赖注入注册后的实例了。 新建一个类,类里面有一个静态的ILifetimeScope来保存注入后的实例 ...
分类:
Web程序 时间:
2020-05-27 18:29:12
阅读次数:
172