码迷,mamicode.com
首页 >  
搜索关键字:handlers    ( 467个结果
python实现事件驱动模型
转:https://www.jianshu.com/p/a605fab0ab11 # encoding: UTF-8 # 系统模块 from Queue import Queue, Empty from threading import * ############################# ...
分类:编程语言   时间:2020-07-18 15:44:17    阅读次数:76
Django logging配置
settings.py import time cur_path = os.path.dirname(os.path.realpath(__file__)) # log_path是存放日志的路径 log_path = os.path.join(os.path.dirname(cur_path), ' ...
分类:其他好文   时间:2020-07-14 18:48:19    阅读次数:92
接口 asmx 无法找到资源
出错的配置 <system.webServer> <handlers> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /> <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" / ...
分类:其他好文   时间:2020-07-10 13:23:02    阅读次数:72
MediatR 框架在.Asp.net Core 中的应用
1. 什么是MediatR MediatR 是一个第三方的类库,主要解决将消息的发送和消息的处理进行分离.github地址 https://github.com/jbogard/MediatR/wiki MediatR 支持The Command and Query Responsibility S ...
分类:Web程序   时间:2020-06-28 13:42:59    阅读次数:90
Django中Logging日志配置
Django日志配置 django中的log需要在settings.py中配置 import time LOGGING_DIR = os.path.join(BASE_DIR, "logs") # LOGGING_DIR 日志文件存放目录 if not os.path.exists(LOGGING_ ...
分类:其他好文   时间:2020-06-26 20:21:31    阅读次数:55
mutation中修改state中的状态值,却报[vuex] do not mutate vuex store state outside mutation handlers.
网上百度说是在mutation外修改state中的状态值,会报下列错误,可我明明在mutations中修改的状态值,还是报错接着百度,看到和我类似的问题,说mutations中只能用同步代码,异步用actions,我试着把修改值放在请求外面,结果不报错了参考:https://segmentfault... ...
分类:其他好文   时间:2020-06-26 12:50:44    阅读次数:59
自定义路由日志的格式
默认的路由日志是这样的: [GIN-debug] POST /foo --> main.main.func1 (3 handlers) [GIN-debug] GET /bar --> main.main.func2 (3 handlers) [GIN-debug] GET /status --> ...
分类:其他好文   时间:2020-06-24 23:16:17    阅读次数:39
golang macaron解决跨域
m.Handlers(func(ctx *macaron.Context) { ctx.Resp.Header().Set("Access-Control-Allow-Origin","*") ctx.Resp.Header().Set("Access-Control-Allow-Headers", ...
分类:系统相关   时间:2020-06-05 13:11:18    阅读次数:75
ansible-playbook安装xinted
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
ansible-playbook 之 拷贝路径
1,使用copy模块时,src 路径可以不用写,直接写要copy的文件名称即可 ansible 自己会根据一定的规律来遍历路径,是否存在该文件(拷贝的对象) 1. [root@localhost kafka]# tree . ├── hosts │ ├── kafka_hosts │ └── kaf ...
分类:其他好文   时间:2020-05-27 15:33:11    阅读次数:231
467条   上一页 1 2 3 4 ... 47 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!