摘要: JUnit4 注解 @Test (expected = Exception.class) 表示预期会抛出Exception.class 的异常 @Ignore 含义是“某些方法尚未完成,暂不参与此次测试”。这样的话测试结果就会提示你有几个测试被忽略,而不是失败。一旦你完成了相应函数,只需要把@Ign 阅读全文
posted @ 2018-10-09 17:25 丁晓超 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 背景:最近辞职了,准备重新找一份工作,整理了一份java面试习题 1.英文缩写 OOA - Object-Oriented Analysis(面向对象分析) OOT - Object-Oriented Testing (面向对象测试) OOP - Object-Oriented Programmin 阅读全文
posted @ 2018-09-04 20:15 丁晓超 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 使用merge存储引擎实现水平分割 一般我们建表用的都是InnoDB引擎,在分表时就需要使用其他的。 步骤:1.创建一个user1表,ENGINE=MyISAM。 2.创建一个结构相同的的user2表,ENGINE=MyISAM。 3.创建一个user表,ENGINE=MRG_MYISAM,并联合u 阅读全文
posted @ 2018-08-31 11:42 丁晓超 阅读(299) 评论(0) 推荐(0) 编辑
摘要: Session 添加Host Name 例: dxc@123.206.*.* port:0000Saved Sessions:Tunnels SSH 中 Tunnels 添加通道:Source port :7001Destination:localhost:8080Auto Remote添加 Add 阅读全文
posted @ 2018-08-31 11:03 丁晓超 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 1.找到重复数据中的一条数据: SELECT id FROM s_course GROUP BY xn,xq,kcdm,kcmc,kkxy,bjmc,jszgh,jsxm,xkkh,xkdd,sksj HAVING COUNT(sksj)>1 2.找到所有重复数据的id 1 SELECT * FRO 阅读全文
posted @ 2018-08-27 14:57 丁晓超 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 通过brew install nginx命令安装的nginx实现自启动可执行如下命令: 1 2 sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons sudo launchc... 阅读全文
posted @ 2018-08-24 11:03 丁晓超 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 2018年08月24日10:32:11 在这个时间之前一直用的服务器http://139.199.89.239/好像挂了,网上搜了一下教程,可以通过反向代理实现激活jrebel 准备工作:nginx 1.nginx 添加如下server start或者reload nginx start:nginx 阅读全文
posted @ 2018-08-24 10:41 丁晓超 阅读(310) 评论(0) 推荐(0) 编辑
摘要: map.jsfunction Map() { this.elements = new Array(); //获取MAP元素个数 this.size = function() { return this.elements.length; ... 阅读全文
posted @ 2018-08-23 18:41 丁晓超 阅读(248) 评论(0) 推荐(0) 编辑
摘要: var myScript = document.createElement("script"); myScript.type = "text/javascript"; myScript.appendChild(document.createTextNode("script中间部分")); document.body.appendChild(myScript); 阅读全文
posted @ 2018-08-23 18:36 丁晓超 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 通过$("#form").serialize()可以获取到序列化的表单值字符串:a=1&b=2&c=3&d=4&e=5通过$("#form").serializeArray()输出以数组形式序列化表单值:[ {name: 'firstname', value: '... 阅读全文
posted @ 2018-08-20 18:24 丁晓超 阅读(139) 评论(0) 推荐(0) 编辑