随笔分类 - i like this
摘要:static block and non static block(constructor block) [toc] 想来想去,先来一题比较好 输出结果 x is 0 x is 1 x is 3 分析 1. Invoking Baz.testAsserts() cause Baz to be ini
        阅读全文
                
摘要:利用复制(分发订阅)延时计算业务数据 [TOC] 应用条件 1. 数据结果可接受延时(具硬,不接受这条不用往下看了) 2. 多个横向业务多个库,业务数据具有流转性 3. 结果数据需多个业务库数据支持 4. 来张图吧,如下 图说明 1. 利用事务复制(分发订阅)把业务源数据从B层同步到P层 2. P层
        阅读全文
                
摘要:api接口写好了?想过(Accept,Content Type)?返回类型json|xml? 起因: 测试 1. 测试demo 新建一个spring boot RESTful API项目 浏览器地址栏访问,返回结果没问题,json数据 默认是不支持xml的,请求头类型application/xml 
        阅读全文
                
摘要:更新jar包里的配置文件 起因 从笔记本传了个jar到服务器,运行的时候才发现配置文件一个ip项填错了。本来很简单的问题,maven重新打包就可以了,但是30多M的jar包就因为一个配置项错了又要重新传一遍,笔记本连的WiFi速度有限,又要个一两分钟。于是想直接在服务器上更新jar包里的配置文件。 
        阅读全文
                
摘要:一、如何跟踪死锁跟踪方法见: http://guobaoguo.blog.163.com/blog/static/109162582010112311553185/我选择的是第二种,然后获取了一份儿跟踪文件。1、SQL Server Profiler的图形展示2、提取的xml数据二、死锁的牺牲者 v...
        阅读全文
                
摘要:ajax post data 获取不到数据,注意 content-type的设置 、post/get关于 jQuery data 传递数据。网上各种获取不到数据,乱码之类的。好吧今天我也遇到了,网上一查各种纠结。乱码不管先看获取不到数据。因为之前一直用jQuery ajax get的方式传递参数, 默认没有设置过 contentType 的值。 1: var Skip = 49; //Number of skipped row 2: var Take = 14; // 3: function Load(Skip, Take) { 4: ...
        阅读全文
                
摘要:目的: 在网页中显示 pdf文件。1. http://api.docin.com/ 豆丁的Docin API是免费开放式“文档在线预览”接口程序 可以显示 doc pdf等文件 必须指定网络路径不然 会报: 2. 网上的方法还是很多的。 <object>标签<objectborder="0"classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"width="650"height="600"VIEWASTEXT=""><
        阅读全文
                
摘要:场景: 子页面处理完成后,关闭子页面刷新父页面。Response.Write("<script>window.opener.location.href=window.opener.location.href;window.close();</script>"); 发现父页面有时刷新不了,问题:在父页面先进行其他js操作,再打开子页面关闭后,父页面不会刷新。 办法:父页面其他js操作后刷新页面。在打开子页面方法可行。(其他的办法) 可是有时候父页面不刷新。window.location.href = window.location.href。 换用:w
        阅读全文
                
摘要:如题. 想根据单击事件的返回结果,来出来超链接是否失效.本来想js直接返回false因该可以. 谁知不行.<html><head><scripttype="text/javascript">functioncheckOrderLock(){returnfalse;}</script></head><body><ahref="#"onclick="checkOrderLock();window.location.href='http://www.google.c
        阅读全文
                
摘要:断点小叹号: "当前不会命中断点,源代码与原始代码不同"不解,google下也无解. 乱点进入 web.config <compilation debug="false"/>办法:<compilation debug="true"/>再调试可行.
        阅读全文
                
摘要:效果View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespaceWindowsFormsApplication1{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}publicoverridestring
        阅读全文
                
摘要:server-----------------usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Net.Sockets;usingSystem.Net;usingSystem.Threading;namespaceServerSocketDemo{classProgram{staticIPEndPointserverEndPoint;staticIPEndPointclientEndPoint;staticSocketserverSocket=newSocket(A
        阅读全文
                
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号