上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: 查询语句 db.getCollection("A表").update( { "id":{$eq:11} } ,{ $set:{"a":1} } , {multi: true} ) 作用:根据条件来更新A表中a字段的值,若a字段不存在则创建。 查询语句分析 条件:"id":{$eq:11} id=11 阅读全文
posted @ 2019-03-19 16:24 H辉 阅读(3251) 评论(0) 推荐(0) 编辑
摘要: 查询语句 db.getCollection("A表").aggregate([ { $lookup:{ from:"B表", localField:"A_id", foreignField:"B_id", as:"B_list" } }, { $match:{ A_id:{$eq:100000} } 阅读全文
posted @ 2019-03-19 15:23 H辉 阅读(3720) 评论(0) 推荐(0) 编辑
摘要: Could not load file or assembly 'xxx.xxx.xxx, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named asse 阅读全文
posted @ 2018-12-25 18:06 H辉 阅读(6632) 评论(0) 推荐(0) 编辑
摘要: 1 接收数据流转成字符串,注意编码 byte[] recv= Request.BinaryRead(Request.TotalBytes);string sourceByte = Encoding.UTF8.GetString(recv); 2 确认文件流在整个数据流的起止位置 比如: //找到文件 阅读全文
posted @ 2018-12-06 21:29 H辉 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 原因: 发起授权请求的页面必须是在授权目录下的页面,而不能是存在与子目录中。否则会返回错误,android返回“System:Access_denied”,ios返回"access_control:not_allowed"。 比如 授权目录是:http://xxx.com/wxpay/ 支付实例是: 阅读全文
posted @ 2018-12-05 14:35 H辉 阅读(5495) 评论(0) 推荐(0) 编辑
摘要: 在顶部的工具栏找到 Rules->CustomRules,第一次打开会弹出提示要安装Fiddler Script 工具,选择 【否】, 就会打开 CustomRules.js 文件。 在 class Handlers 中增加以下代码,先退出Fiddler工具,然后再保存,之后再次打开Fiddler工 阅读全文
posted @ 2018-11-15 10:47 H辉 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 原因其实是很简单的: 使用First代表一定能找到,找不到就抛出异常,必须使用try……catch……进行异常的捕获。 推荐使用 FirstOrDefault 或Find 取序列中满足条件的第一个元素,如果没有元素满足条件,则返回默认值,如果返回的是可以为null的对象,则返回默认值为null,对于 阅读全文
posted @ 2017-07-13 11:06 H辉 阅读(2842) 评论(0) 推荐(0) 编辑
摘要: 1 商家提供的WebService接口: https://ws.nciic.org.cn/nciic_ws/services/NciicServices?wsdl 2 在浏览器里打开这个地址,会显示一个XML,右击另存为1.wsdl文件 3 使用vs 的 wsdl.exe工具的来生成代理类 wsdl 阅读全文
posted @ 2017-05-19 11:25 H辉 阅读(3782) 评论(0) 推荐(1) 编辑
摘要: //JAVA中//使用hashset去重复,set为重复的集合,可以通过new ArrayList(set)转换成list HashSet<HashMap<String, String>> set = new HashSet<>(); for(HashMap<String, String> stud 阅读全文
posted @ 2017-03-30 17:24 H辉 阅读(3137) 评论(0) 推荐(0) 编辑
摘要: 默认情况一个服务器的IIS只能绑定一个HTTPS也就是443端口 要实现多个站点对应HTTPS只能更改IIS配置 首先把每个站点分配个不同端口,如443.444.445…(证书一定要是多域的) 然后重启站点 方法一: 然后在:C:\Windows\system32\inetsrv\config\ap 阅读全文
posted @ 2017-03-24 11:45 H辉 阅读(22256) 评论(5) 推荐(1) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页