安全原则:我们应该如何上手解决安全问题? 什么是“黄金法则”? 黄金法则主要包含三部分:认证(Authentication)、授权(Authorization)、审计(Audit)。 给黄金法则加上问责(Accounting)这一部分,组成“4A 法则”;还有的会加上身份识别(Identificat ...
分类:
其他好文 时间:
2020-04-08 09:31:59
阅读次数:
155
APIView的详细解读 一 包含属性 1 renderer_class 渲染类 2 parser_class 解析类 3 authentication_class 认证类 4 throttle_class 频率控制类 5 permission_class 权限控制类 6 context_neg_c ...
提示错误 mysqlclient 1.3.13 or newer is required; you have 0.9.3. raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Dat ...
分类:
数据库 时间:
2020-04-06 13:36:41
阅读次数:
82
python在安装第三方模块时候,需要将python的路径写入注册表,否则会提示 ‘python version 3.8-32 required,which was not found in the registry.’此时需要查看你的注册表 以下为检查及写入方法。 一、第一步先检查python路径 ...
分类:
编程语言 时间:
2020-04-06 11:21:47
阅读次数:
108
Given n ropes of different lengths, we need to connect these ropes into one rope. We can connect only 2 ropes at a time. The cost required to connect ...
分类:
其他好文 时间:
2020-04-06 09:45:55
阅读次数:
78
LFU缓存。我就直接引用LC中文网的题干了。 请你为 最不经常使用(LFU)缓存算法设计并实现数据结构。它应该支持以下操作:get 和 put。get(key) - 如果键存在于缓存中,则获取键的值(总是正数),否则返回 -1。 put(key, value) - 如果键不存在,请设置或插入值。当缓 ...
分类:
系统相关 时间:
2020-04-06 09:31:03
阅读次数:
73
配置如下:1、打开ZABBIX管理WEB界面;2、导航到Administration,Authentication页面;3、继续导航到LDAPsettings配置页面;4、勾选EnableLDAPauthentication,激活LDAP认证;5、执行如下配置,并点击Update更新:#域控的主机地址LDAPhost:192.168.1.1#LDAP连接端口Port:389#FQDN路径BaseD
分类:
其他好文 时间:
2020-04-06 09:22:00
阅读次数:
209
整理下sql相关知识,查漏补缺(长期更新) 常用语句及知识 information_schema包含了大量有用的信息,例如下图 mysql.user下有所有的用户信息,其中authentication_string为用户密码的hash,如果可以使用可以修改这个值,那么就可以修改任意用户的密码 常用函 ...
分类:
数据库 时间:
2020-04-05 09:46:34
阅读次数:
83
一、NoSuchMethodError 因为对服务方进行了修改,没有进行install操作,导致消费方无法找到该方法。 二、Required String parameter 'id' is not present 前端使用result风格的url方式传递参数时: <a href="buy/${de ...
分类:
其他好文 时间:
2020-04-04 22:40:23
阅读次数:
77
@RestController and @RequestMapping是springMVC的注解,不是springboot特有的 @RestController = @Controller+@ResponseBody @SpringBootApplication = @Configuration+@ ...
分类:
编程语言 时间:
2020-04-04 20:18:34
阅读次数:
106