摘要: public bool ChangeConfig(string AppKey,string AppValue) { bool result = true; try { XmlDocument xDoc = new XmlDocument(); ... 阅读全文
posted @ 2017-07-19 17:39 幸福安康 阅读(3614) 评论(0) 推荐(0) 编辑
摘要: Public void Add() { List lists = GetDataByFile(tempFilePath); private static readonly string sqlconnection = "Data Source=.;Initial Catalog=xxxx;Persist Security Info=True;User ID=sa;Passwo... 阅读全文
posted @ 2017-07-19 17:35 幸福安康 阅读(4811) 评论(6) 推荐(1) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net; using System.Windows.Forms; using System.Globalization; namespace FtpLib { public class F... 阅读全文
posted @ 2017-07-19 17:27 幸福安康 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 详细请看http://www.cnblogs.com/leoo2sk/archive/2009/06/17/1504693.html 定义一个接口,和两个类(实现该接口) IButton: WindowsButton: MacButton: ReflectionFactory: 主入口: xml: 阅读全文
posted @ 2017-07-15 18:13 幸福安康 阅读(1908) 评论(0) 推荐(0) 编辑
摘要: 图3.1 Setter注入示意 定义一个接口: 定义一个要实现该接口的类A: 定义一个要实现该接口的类B: 定义一个主体类 注入点: Main: 结果: 阅读全文
posted @ 2017-07-15 17:13 幸福安康 阅读(1296) 评论(0) 推荐(1) 编辑
摘要: 100,"name"=>"Liuxy","score"=>"hello") ); foreach ($arr as $key =>&$value) { if($value['name']=="Liuxy"){ $value['name']=$value['score']; } } print_r($arr); ?> 阅读全文
posted @ 2017-07-13 14:39 幸福安康 阅读(2818) 评论(0) 推荐(0) 编辑
摘要: string tempFileName = "DETAIL_" + DateTime.Now.ToString("yyyyMMddHHmmssffff") + ".txt"; string tempFilePath = Environment.CurrentDirectory + "\\" + tempFileName; var output = new StreamWriter(tempFil... 阅读全文
posted @ 2017-07-10 16:10 幸福安康 阅读(2566) 评论(0) 推荐(1) 编辑
摘要: API重放攻击(Replay Attacks)又称重播攻击、回放攻击,这种攻击会不断恶意或欺诈性地重复一个有效的API请求。攻击者利用网络监听或者其他方式盗取API请求,进行一定的处理后,再把它重新发给认证服务器,是黑客常用的攻击方式之一。HTTPS数据加密是否可以防止重放攻击?否,加密可以有效防止 阅读全文
posted @ 2017-07-06 22:23 幸福安康 阅读(2865) 评论(0) 推荐(0) 编辑
摘要: package javapost; import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import ja... 阅读全文
posted @ 2017-07-06 15:16 幸福安康 阅读(233) 评论(0) 推荐(0) 编辑
摘要: $loginName, "pwd" => $pwd, "serviceName" => $serviceName, "param" => array ( // 姓名 "name" => 'xxx', // 身份证号 "idCard" => 'xxx... 阅读全文
posted @ 2017-07-06 15:13 幸福安康 阅读(168) 评论(0) 推荐(0) 编辑