1.egg项目中安装 egg-sequelize和mysql npm install --save egg-sequelize mysql2 2.在plugin.js 中插入以下代码 /** @type Egg.EggPlugin */ module.exports = { // had enabl ...
分类:
数据库 时间:
2020-05-28 21:32:45
阅读次数:
288
名词 project : 项目代码 module : 子 module 描述 : project 没有任何 flavor , module 里添加了 flavor 以后导致编译失败, 在 project 里添加相同的 flavor 以后编译成功。 结论 : gradle 里 project 的 fl ...
分类:
移动开发 时间:
2020-05-28 19:36:09
阅读次数:
85
1.多对多操作 1.1 环境准备 # test.py import os, django os.environ.setdefault('DJANGO_SETTINGS_MODULE', '项目名.settings') django.setup() from app01 import models # ...
分类:
其他好文 时间:
2020-05-28 16:30:44
阅读次数:
56
1.新建middleware文件 //options: 中间件的配置项,框架会将 app.config[${middlewareName}] 传递进来。 //app: 当前应用 Application 的实例。 module.exports = (options,app) => { //返回一个异步 ...
分类:
Web程序 时间:
2020-05-28 16:18:00
阅读次数:
157
*IDEA没有eclipse的workspace概念,只有Project和module,一个Project由多个modules组成。 新建项目 新建模块 修改Tomcat配置 ①Server ②Deployment ...
分类:
Web程序 时间:
2020-05-28 12:56:02
阅读次数:
87
1 #!/usr/bin/env python 2 3 import json 4 import shutil 5 from ansible.module_utils.common.collections import ImmutableDict 6 from ansible.parsing.dat ...
开启监控模块 配置访问地址 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
转自https://www.cnblogs.com/jian-jia/archive/2019/11/24/11924371.html module a(b, c, d,...z);//module: 模块头 a:模块名 (b,c,d,...z):端口列表 input b;//输入声明 input ...
分类:
编程语言 时间:
2020-05-28 00:30:00
阅读次数:
90
oracle数据库获取uuid:select rawtohex(sys_guid()) from dual; mapper.xml实例 <insert id="insert" parameterType="net.topcheer.module.entity.TsOperateLog"> <sele ...
分类:
数据库 时间:
2020-05-27 20:42:54
阅读次数:
120
wasm是基于堆栈的虚拟机的二进制指令格式。在这次比赛中遇到,记录一下。 IDA反编译插件 下载地址:https://github.com/fireeye/idawasm 食用方法: install the python module: python.exe setup.py install man ...
分类:
其他好文 时间:
2020-05-27 18:23:19
阅读次数:
126