随笔分类 -  编程

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 25 下一页
开发,计算机,源码,编程,语言,经验,转载,学习,记录
摘要:记录本例查询初衷:有表:表1,表2,表3关系1 many-to-one 22 many-to-one 3结果:要通过表3中的条件反向查询表1中相关的数据 public Page findPageWeiCommentCommentByUserid( String u... 阅读全文
posted @ 2015-07-28 13:59 243573295 阅读(10765) 评论(0) 推荐(0)
摘要:JS千分位处理 阅读全文
posted @ 2015-07-24 11:04 243573295 阅读(1225) 评论(0) 推荐(0)
摘要:一,setCycleDetectionStrategy 防止自包含/** * 这里测试如果含有自包含的时候需要CycleDetectionStrategy */ public static void testCycleObject() { CycleObjec... 阅读全文
posted @ 2015-07-22 16:35 243573295 阅读(800) 评论(0) 推荐(0)
摘要:在使用JSONObject.fromObject的时候,出现“There is a cycle in the hierarchy”异常。意思是出现了死循环,也就是Model之间有循环包含关系;解决办法:使用setCycleDetectionStrategy防止自包含代码:JsonConfig jso... 阅读全文
posted @ 2015-07-22 16:28 243573295 阅读(404) 评论(0) 推荐(0)
摘要:配置一 @OneToMany(cascade=CascadeType.ALL) @JoinColumn(name="fatherID") //对应儿子类的哪个字段 子类中配置ManyToOne的字段名称 private Set children; 配置二@OneToMany(... 阅读全文
posted @ 2015-07-22 16:18 243573295 阅读(1774) 评论(0) 推荐(0)
摘要:1.Formula的作用 Formula的作用就是用一个查询语句动态的生成一个类的属性 就是一条select count(*)...构成的虚拟列,而不是存储在数据库里的一个字段。用比较标准的说法就是:有时候,你想让数据库,而非JVM,来替你完成一些计算,也可能想创建某种虚拟列,你可以使用sql片... 阅读全文
posted @ 2015-07-22 15:58 243573295 阅读(1242) 评论(0) 推荐(0)
摘要:1、格式化日期${updated?string("yyyy-MM-dd HH:mm:ss")} 如果指定的变量不一定存在,可以这样:${(dateMap.beginTime?string("yyyy.MM.dd"))!''} 2、显示boolean值 ${foo?string("yes", "... 阅读全文
posted @ 2015-07-17 10:49 243573295 阅读(2535) 评论(0) 推荐(1)
摘要:0)> ${item.marketMaker} (无) 取得... 阅读全文
posted @ 2015-07-17 09:59 243573295 阅读(11217) 评论(0) 推荐(0)
摘要:方法一 Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day ... 阅读全文
posted @ 2015-07-16 17:12 243573295 阅读(7359) 评论(0) 推荐(0)
摘要:获取input的checked值是否为true:第一种:if($("input[name=item][value='val']").attr('checked')==true) //判断是否已经打勾 --注:name即控件name属性,value即控件value属性第二种:可以不指定属性值,... 阅读全文
posted @ 2015-07-14 17:10 243573295 阅读(543) 评论(0) 推荐(0)
摘要:js改变原有的地址 window.open(webPath+'/index?code='+code,'_self'); 阅读全文
posted @ 2015-07-14 15:57 243573295 阅读(223) 评论(0) 推荐(0)
摘要:hibernate使用自动的hql查询或者其封装的查询方法都能字段转化成对象而如果在hibernate中使用sql时大多返回为Object[]对象那么如何将object[]转换成model呢,答案就是addEntity(Class cls);实列 public HqxgModel getMax... 阅读全文
posted @ 2015-07-14 10:42 243573295 阅读(897) 评论(0) 推荐(0)
摘要:1:浏览器请求下载 public void listStockcodeUplaod(HttpServletRequest req, HttpServletResponse res) throws Exception { String urlPath = re... 阅读全文
posted @ 2015-07-13 13:59 243573295 阅读(1430) 评论(0) 推荐(0)
摘要://检测当前浏览器function browserType() { var brow = $.browser; //console.log(brow); var bInfo = ""; var type = ""; if (brow.msie) { typ... 阅读全文
posted @ 2015-07-13 13:38 243573295 阅读(386) 评论(0) 推荐(0)
摘要:jsrender中使用for循环数据时有时需要访问父级数据。而jsrender在循环中的父级数据存放在隐藏属性parent.parent.data中,使用案例如下 {{:#parent.parent.data}}具体使用案例如: 嵌套循环使用#parent访问父级数据 --- by... 阅读全文
posted @ 2015-07-09 09:30 243573295 阅读(520) 评论(0) 推荐(0)
摘要:Spring Security是什么?Spring Security,这是一种基于Spring AOP和Servlet过滤器的安全框架。它提供全面的安全性解决方案,同时在Web请求级和方法调用级处理身份确认和授权。在Spring Framework基础上,Spring Security充分利用了依赖... 阅读全文
posted @ 2015-07-07 21:49 243573295 阅读(443) 评论(0) 推荐(0)
摘要:$.ajax({ cache: true, type: "POST", url:ajaxCallUrl, data:$('#yourformid').serialize(),// ... 阅读全文
posted @ 2015-07-06 15:18 243573295 阅读(180) 评论(0) 推荐(0)
摘要:Cache的配置很灵活,官方提供的Cache配置方式有好几种。你可以通过声明配置、在xml中配置、在程序里配置或者调用构造方法时传入不同的参数。你可以将Cache的配置从代码中剥离出来,也可以在使用运行时配置,所谓的运行时配置无非也就是在代码中配置。以下是运行时配置的好处:· 在同一个地方配置所... 阅读全文
posted @ 2015-07-05 16:41 243573295 阅读(487) 评论(0) 推荐(0)
摘要:先看一个案例package com.jCuckoo.demo;import java.text.SimpleDateFormat;import java.util.Date;import org.springframework.scheduling.annotation.Scheduled;publ... 阅读全文
posted @ 2015-07-05 13:39 243573295 阅读(890) 评论(0) 推荐(0)
摘要:序号 机器名 IP地址 MAC地址 上行/下行速率 增加:if(条件) {//根据InterfaceType的值区分无线客户端和有限客户端 var table = document.getElementById("wifi_clients_table"); var newRow = ... 阅读全文
posted @ 2015-06-24 19:01 243573295 阅读(1261) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 25 下一页