摘要: docker 镜像管理 docker image pull alpin:latestdocker image ls / docker images --filter xx=xx danging = true/false 返回(非)悬虚镜像 before 镜像名称或id since 镜像名称或id l 阅读全文
posted @ 2020-08-07 12:44 651635 阅读(206) 评论(0) 推荐(0) 编辑
摘要: MySql 操作数据库 SHOW VARIABLES LIKE 'datadir'; # 查看数据目录​show create table students \G # 查看sql语句​SHOW ENGINES;SHOW VARIABLES LIKE 'default_storage_engine%' 阅读全文
posted @ 2020-07-30 14:44 651635 阅读(247) 评论(0) 推荐(0) 编辑
摘要: MongoDB 支持的数据类型 类型描述示例 NULL 表示空值或者不存在的字段,{"x" : null} Boolean 布尔型有 true 和 false,{"x" : true} Number 数值:客户端默认使用 64 位浮点型数值。{"x" : 3.14} 或 {"x" : 3}。对于整型 阅读全文
posted @ 2020-07-28 17:26 651635 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 认证基本流程 对request封装并初始化 从配置文件中拿设置 指定全局验证 验证类,类名无要求,但必须有两个方法,authenticate验证,另一个为空 执行authenticate的场景 可用此方法对单一视图类进行认证设置 阅读全文
posted @ 2019-11-21 21:46 651635 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 整合后文件 配置文件: 1. spring与mybatis配置文件:applicatonContext.xml 导入数据库配置文件 配置数据源信息 配置事务管理器 开启事务注解 配置 mybatis 的 sqlSessionFactoryBean 配置 mapper 扫描器 扫描 service < 阅读全文
posted @ 2019-11-05 21:04 651635 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 一:默认只有在输入 '.' 时会有提示 解决: 二:有代码提示时按空格键会选择提示而非输出空格 解决: 阅读全文
posted @ 2019-11-01 20:04 651635 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 五种中间件 cbv: as_view() =》 View.view() => View.dispatch() => 反射 重写dispatch便可在view视图前后操作 阅读全文
posted @ 2019-10-04 15:08 651635 阅读(156) 评论(0) 推荐(0) 编辑
摘要: def update(req: django.http.HttpRequest): if req.method == "POST": print("has file") with open("f:/file", "wb") as f: print("get f") print(req.FILES) for i in req.FILES["file_name"].chunks(): f.write( 阅读全文
posted @ 2019-09-16 17:01 651635 阅读(243) 评论(0) 推荐(0) 编辑
摘要: mysql 官方库自带maraidb mongodb 添加其他远程仓库,用yum下载 先创造文件 vim /etc/yum.repos.d/mongodb-org-3.4.repo 粘贴 [mongodb-org-3.4] name=MongoDB Repository baseurl=https: 阅读全文
posted @ 2019-09-11 21:13 651635 阅读(213) 评论(0) 推荐(0) 编辑
摘要: view source Q:无法用鼠标右键查看原码,怎么办?A:浏览器地址栏在网址前输入 view-source: 即可查看源码 get post Q:用 get 提交 a=1,用 post 提交 b=2A:url后加 ?a=1,用 hackbar 提交b=2 robots Q:robots.txt 阅读全文
posted @ 2019-05-23 18:45 651635 阅读(851) 评论(0) 推荐(0) 编辑