<1> 可单独运行的jar,获取jar内的图片资源方法,其他资源可以类似获取
ImageIcon favol =new ImageIcon(xx.class.getResource("/xx.jpg"));
<2> c#提交post请求
string postData = "aaa=123&bbb=456";
byte[] data = encoding.GetBytes(postData);
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create(sendURL);
myRequest.Method = "POST";
myRequest.Timeout = 600000;
myRequest.ContentType = "application/x-www-form-urlencoded";
myRequest.ContentLength = data.Length;
Stream newStream = myRequest.GetRequestStream();
newStream.Write(data, 0, data.Length);
newStream.Close();
<3> linux禁ping----无需重启
sysctl -w net.ipv4.icmp_echo_ignore_all=1
sysctl -p
本文由 转啊转 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为:
2016/08/28 17:50