摘要: 1. #将传入的数据都当成一个字符串,会对自动传入的数据加一个双引号。 如:order by #user_id#,如果传入的值是111,那么解析成sql时的值为order by "111", 如果传入的值是id,则解析成的sql为order by "id". 2. $将传入的数据直接显示生成在sql 阅读全文
posted @ 2016-03-04 11:48 阿若蜜意 阅读(163) 评论(0) 推荐(0) 编辑
摘要: List list=new ArrayList();1.如果是以上这样的话,lis不为null 但是size=0 这样集合对于之后的判断是没用的, 甚至是报异常,如list.get(0.......n)这样取值判断,就会报异常。2.如果先判断size 再判断null 如:if(list.size>0 阅读全文
posted @ 2016-02-19 11:39 阿若蜜意 阅读(5045) 评论(0) 推荐(0) 编辑
摘要: package com.thinkgem.jeesite.modules.yudengjipush.service; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayL 阅读全文
posted @ 2016-02-18 15:06 阿若蜜意 阅读(588) 评论(0) 推荐(0) 编辑
摘要: /** * Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.sys 阅读全文
posted @ 2016-02-18 14:18 阿若蜜意 阅读(4428) 评论(0) 推荐(0) 编辑
摘要: package com.thinkgem.jeesite.modules.yudengji.web; import java.util.Date; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.Http 阅读全文
posted @ 2016-02-18 14:14 阿若蜜意 阅读(576) 评论(0) 推荐(0) 编辑
摘要: @PathVariable和@RequestParam的区别请求路径上有个id的变量值,可以通过@PathVariable来获取 @RequestMapping(value = "/page/{id}", method = RequestMethod.GET) @RequestParam用来获得静... 阅读全文
posted @ 2016-01-22 10:56 阿若蜜意 阅读(1870) 评论(0) 推荐(0) 编辑
摘要: @InitBinder protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { binder.registerCustomEditor(D... 阅读全文
posted @ 2016-01-13 15:38 阿若蜜意 阅读(1410) 评论(0) 推荐(1) 编辑
摘要: window.onload = function() { var changGuanId = $("input[name='id']").val(); if (changGuanId == undefined) { return; } $.ajax({ ... 阅读全文
posted @ 2016-01-11 18:01 阿若蜜意 阅读(226) 评论(0) 推荐(0) 编辑
摘要: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%@ include file="/WEB-INF/views/include/taglib.jsp"%> <!DOCTYPE HTML PUBLIC "-// 阅读全文
posted @ 2016-01-11 17:57 阿若蜜意 阅读(5885) 评论(0) 推荐(0) 编辑
摘要: package com.thinkgem.jeesite.common.utils; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePai 阅读全文
posted @ 2016-01-11 17:46 阿若蜜意 阅读(428) 评论(0) 推荐(0) 编辑