一、SpringMVC的运行流程 1.客户端发送请求到核心控制器(web.xml--DispatchServlet) 2.核心控制器选择映射处理器(HandMapping)将请求交给业务逻辑控制器(action) 3.业务逻辑控制器处理完成后,向核心控制器返回ModelAndView 4.核心控制器 ...
分类:
编程语言 时间:
2018-03-21 11:39:18
阅读次数:
191
# python3导入request包 from urllib import request import sys import io # 如果需要用print打印时,如果出现异常可以先设置输出环境 sys.stdout = io.TextIOWrapper(sys.stdout.buffer, e ...
分类:
编程语言 时间:
2018-03-20 18:49:54
阅读次数:
175
公司准备将 http 换成 https,就需要 http 强制跳转到 https。这个在网上搜了下,基本总结下在 server 里面配置 rewrite ^(.*)$ https://$host$1 permanent;或者在server里面配置 return 301 https://$server_name$request_uri;或者在server里面
分类:
Web程序 时间:
2018-03-20 18:15:26
阅读次数:
763
注意:一定要写成 “” ,否则后台一直接收不到 router.post('/form',async(ctx,next)=>{ const form1 = ctx.request.body; console.log(form1); //const form1 = JSON.parse(form) // ...
分类:
其他好文 时间:
2018-03-20 18:14:45
阅读次数:
192
Request对象在web应用的开发中是一个非常重要的对象,主要用来获取用户发来的请求数据。 常用属性参考:http://docs.jinkan.org/docs/flask/api.html#flask.request 下面我们以一个表单提交的例子来说明一些常用request属性的使用。 在tem ...
分类:
编程语言 时间:
2018-03-20 15:10:17
阅读次数:
822
wx.login({ success: function(res) { //首先获取用户code //res.code wx.request({ url: 'https://api.weixin.qq.com/sns/jscode2session', ... ...
分类:
微信 时间:
2018-03-20 10:34:21
阅读次数:
252
阿里云短信接口 配置文件 config.php TestController.php Alisms.php ...
分类:
其他好文 时间:
2018-03-20 10:33:44
阅读次数:
689
HttpPostedFileBase file = Request.Files["imgfile"]; var filePath = "/Upload/image/"; var timeDirectory = DateTime.Now.ToString("yyyyMMdd"); filePath =... ...
分类:
Web程序 时间:
2018-03-20 10:32:05
阅读次数:
183
Redirect_uri 10003错误,微信公众号信息配置 没修改 url未注册 统一下单链接http://xxxxx.com/example/jsapi.php,配置的地址是http://xxx.com/example/ 微信支付appid不存在 拆开来写WeixinJSBridge.invok... ...
分类:
微信 时间:
2018-03-20 10:31:48
阅读次数:
381
Flask提供了两种上下文,一种是应用上下文(Application Context),一种是请求上下文(Request Context)。application 指的就是当你调用app = Flask(name)创建的这个对象app; request 指的是每次http请求发生时,WSGI ser... ...
分类:
其他好文 时间:
2018-03-20 00:40:36
阅读次数:
241