https://wx2.qq.com/?&lang=zh_CN /** * 启动二维码登录 */ function doQrcodeLogin() { loginFactory.getUUID().then(function (uuid) { utilFactory.log('login',uuid ...
分类:
其他好文 时间:
2020-05-29 13:27:07
阅读次数:
62
1.点击Edit Configurations修改 2.删除Application 文件下所有文件 3.在Application下use classpath of module 选择要运行的目录 ...
分类:
其他好文 时间:
2020-05-28 21:45:03
阅读次数:
56
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
1、先展示下角色结构:[root@admin1roles]#treentpd/ntpd/├──files│└──ntp-4.2.8p14.tar.gz├──handlers├──tasks│└──main.yml├──templates└──vars5directories,2files2、task任务(1)main.yml[root@admin1tasks]#catmain.ymlinclude
分类:
其他好文 时间:
2020-05-28 13:16:18
阅读次数:
76
*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