11 2014 档案
摘要:jsp中和response.sendRedirect("")两种跳转的区别一、response.sendRedirect("")始终要记住一点就是这种跳转是让客户端浏览器自己去访问指定的页面,这个指定页面的地址就是sendRedirect("")参数的内容。如果跳转的页面是webapp里面的页面,客...
阅读全文
摘要:SELECT * FROM my_table WHERE id IN (30, 20, 80, 40) ORDER BY FIELD(id, 30, 20, 80, 40);
阅读全文
摘要:`desc` 需要加引号BigDecimal progress = new BigDecimal(0.444); progress=progress.setScale(2, BigDecimal.ROUND_HALF_UP);或DecimalFormat df = new DecimalFo...
阅读全文
摘要:案例:TInfCustomer cus = (TInfCustomer) this.baseDao.getOne(helper);cus.setXXXcus .setXXX不调用update也写入数据库原因:hibernate在每个session里都会做些处理,比如把查询过的对象缓存起来什么,这个时...
阅读全文
摘要:Map m = new HashMap(); Integer i = 5; String s = null; m.put("val1", i); m.put("val2", s); System.err.println(m.get("val1")); System.err.prin...
阅读全文