- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 Kong的Service 配置
目录通过 Admin API 添加 Service请求响应为 Service 添加路由(Route)请求响应通过 Kong 转发请求请求响应总结参考通过 Admin API 添加 Service请求curl -i -X POST \ --url http://localhost:8001/services/ \ --d...
2020-06-02 16:42:20
2887
1
原创 Kong的基本操作
目录启动migrations 命令Start 命令停止、重启停止重启启动migrations 命令将Kong的基本配置信息录入至数据库(PostgreSQL 或 Cassandra)$ kong migrations bootstrap [-c /path/to/kong.conf]如果执行出错,大多是因为数据库相关信息配置错误导致...
2020-06-02 16:41:30
1945
原创 CompletableFuture使用文章收录
https://www.cnblogs.com/cjsblog/p/9267163.htmlhttps://segmentfault.com/a/1190000014479792#articleHeader3https://www.cnblogs.com/fingerboy/p/9948736.html
2019-07-08 15:35:27
124
原创 IE下Button背景图片无效的问题
今天遇到妖异的事情,给一个按钮设置了背景图片的样式:background-image: url(../../images/btn_getnote.gif);在IE6下正常,IE7及以上版本都是背景图片无效,换了很多方式都无效。结果无意中改成:background: url(../../images/btn_getnote.gif);正常了。。。无比坑
2012-03-20 14:07:35
774
原创 ashx文件中折叠收起代码
新年回公司第一天就发现一个令人振奋的东西:ashx文件里的代码终于可以用#region 来折叠了。。。。话不多说,上步骤:VS --- 工具 --- 选项 --- 文本编辑器 --- 文件扩展名,只要在右侧添加 ashx ,选中MS-VS c# 保存后 试试看吧。。。内牛满面啊。。
2012-01-29 17:33:09
1406
原创 c# switch中使用goto
var a=0;switch(month){ case "a":a=1; case "b":a=2; case "c":a=3;}上面中情况在c#中是不允许的但是下面的用法在c#中却是可以的switch(month){ case "a":a=1;goto case "c"; case "b":a=2;goto case "a"; case "c":a=3
2011-12-27 21:05:49
1410
1
原创 获取字符串长度
// 英文汉字均视作长度为1String.Length// 英文长度为1,汉字长度为2Encoding.Default.GetBytes(str).Length
2011-12-21 10:53:22
342
原创 获取当前的Web提交方式
HttpContext.Current.Request.HttpMethod.Equals("POST")HttpContext.Current.Request.HttpMethod.Equals("GET")
2011-12-21 10:40:32
313
原创 验证IP的正则
IPV4^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)$IPV6^((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){2}((2[0-4]\d|25[0-5]|[01]?\d\d?|\*)\.)(2[0-4]\d|25[0-5]|[01]?\d\d?|\*)$
2011-12-21 10:35:05
314
原创 获取客户端IP的几种方式
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];HttpContext.Current.Request.UserHostAddress;
2011-12-21 10:32:10
450
原创 asp.net将类实例转换为JSON格式
之前一直没有用jQuery获取JSON格式的返回,因为试验了几次都失败了。这次看到别人的一段代码,发现了JavaScriptSerializer这样一个类,利用其中的Serialize()方法可以将实例很简单的转换为JSON格式。先写一段代码,大家一看就知道了JavaScript
2011-07-07 11:54:12
894
转载 javascript 代码优化
引自: http://www.cublog.cn/u2/80710/showart_1952318.html今天偶看了一篇文章,感觉比较经典,大家分享一下。外加本人的评论。原文内容如下,由于原文有一些错误,本人已更正。 在看Nicholas C.Zakas写的
2011-07-04 15:03:03
645
原创 JavaScript 去空格正则
String.prototype.Trim = function() { return this.replace(/(^\s*)|(\s*$)/g, ""); } String.prototype.LTrim = function() { return th
2011-07-04 14:35:15
262
转载 mysql alter 语句用法,添加、修改、删除字段等
引自:http://www.blogjava.net/Alpha/archive/2007/07/23/131912.html //主键549830479 alter table tabelname add new_field_id int(5) unsigned default 0 not null auto_increment ,add primary key (
2011-06-28 10:25:00
274
转载 C#实现窗口任务栏闪烁代码如下
引自:http://www.csharpwin.com/csharpspace/9129r2514.shtml using System.Runtime.InteropServices;-------------------------- [DllImport("user32.dll")] public static extern bool FlashWindow(
2011-06-24 12:08:00
564
原创 ADO.NET
引自: http://blog.youkuaiyun.com/21aspnet/archive/2009/01/05/3712984.aspx 能用 DataReader 就不要用 DataSet / DataTable,前者读取速度快又不耗内存;后者虽较有弹性,但速度较慢又会每个使用者消耗许多内存。若您连 DropDownList 控件的数据来源,都用 SqlDataSource 控件的默认值
2011-06-23 14:00:00
344
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人