上一页 1 ··· 5 6 7 8 9 10 11 下一页
摘要: 实例:现有一张统计表,是以task_id和start_time作为联合主键的,每一个任务可以启动多次,这样一来同一个task_id就会对应多个start_time即多条统计记录,现在要求将所有的任务统计出来,也就是查询出task_id唯一的集合,每条任务对应的是最新的一条统计记录 阅读全文
posted @ 2016-09-09 19:53 倚天剑雨 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1.从远程主机复制文件到本地 scp 源文件 目标文件夹 eg:scp liushizhen@172.16.7.161:/home/liushizhen/software_sources/jdk-8u92-linux-x64.tar.gz /home/zhoushuo/work/SoftWare/2 阅读全文
posted @ 2016-09-09 19:37 倚天剑雨 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1 function showCurrentDate(){ 2 var today,hour,second,minute,year,month,date; 3 var strDate ; 4 today=new Date(); 5 var n_day = today.getDay(); 6 switch (n_day) 7 { 8 ... 阅读全文
posted @ 2016-09-09 19:32 倚天剑雨 阅读(3990) 评论(0) 推荐(0) 编辑
摘要: Ubuntu中应用程序启动器“XXX.desktop”还没有被标记为可信任的问题:http://www.tuicool.com/articles/fIBJ32n eclipse问题:prefences工具栏切换无反应,需要修改eclipse.init配置文件,在最上面加上--launcher.GTK 阅读全文
posted @ 2016-09-09 19:28 倚天剑雨 阅读(3163) 评论(0) 推荐(0) 编辑
摘要: 1 if(confirm("确定要删除该任务吗?")){ 2 $.post("findTaskById.action",{taskId:taskId},function(data){ 3 if(data.status=='I' || data.status=='V'){ 4 window.location.href = "d... 阅读全文
posted @ 2016-09-09 19:21 倚天剑雨 阅读(2018) 评论(0) 推荐(0) 编辑
摘要: 当表中一个主键不能唯一标识一条记录的时候,就需要使用联合主键了,下面是使用JPA注解实现联合主键的代码 1 首先需要建立一个复合主键类,用来存放需要生产联合主键的属性,该类需要实现序列化。 package com.ericsson.adp.entity.cons; import java.io.Se 阅读全文
posted @ 2016-09-09 19:15 倚天剑雨 阅读(2194) 评论(0) 推荐(0) 编辑
摘要: jsonview: http://www.bejson.com/jsonviewernew/ 阅读全文
posted @ 2016-09-09 17:13 倚天剑雨 阅读(142) 评论(0) 推荐(0) 编辑
摘要: new User(){ { setAge(20); setName("无忌哥哥"); } } 阅读全文
posted @ 2016-09-06 17:01 倚天剑雨 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 参考:http://my.oschina.net/suyewanwan/blog/102525 1.懒汉式: 阅读全文
posted @ 2016-09-06 15:00 倚天剑雨 阅读(116) 评论(0) 推荐(0) 编辑
摘要: <context annotation-config />标签意义: 该标签隐式的向Spring容器注册了: AutowiredAnnotationBeanPostProcessor CommondAnnotationBeanPostProcessor PersistenceAnnotationBe 阅读全文
posted @ 2016-09-05 19:39 倚天剑雨 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页