12 2016 档案
摘要:1 //这篇随笔是为了提醒自己避免重复错误 2 3 4 5 //原先的代码是这样的,想着输出会是9.00,可是结果却是0.00 6 BigDecimal day_fee = new BigDecimal("0.00"); 7 day_fee.add( new BigDecimal("9.00")); 8 System.out.print("day_fee:" + day_f...
阅读全文
摘要://如果只需要一个子属性从value出发 {field:'customer',title:'会员手机',width:100, formatter: function(value,row,index){ if (value.phone){ return value.phone; ...
阅读全文
摘要:1、a different object with the same identifier value was already associated with the session。 错误原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。 解决方法一:sessio
阅读全文
摘要:一、获取服务器IP 1 String addr = InetAddress.getLocalHost().getHostAddress();//获得本机IP 二、获取客户端本机IP
阅读全文
摘要:1 从Request对象中可以获取各种路径信息,以下例子: 2 假设请求的页面是index.jsp,项目是WebDemo,则在index.jsp中获取有关request对象的各种路径信息如下 3 String path = request.getContextPath(); 4 String basePath = request.getSche...
阅读全文
浙公网安备 33010602011771号