`
a4212abc
  • 浏览: 6646 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
java类代码: import org.quartz.JobExecutionException; import org.springframework.scheduling.quartz.QuartzJobBean; /** * 定时器 * @author Administrator * */ public class MapOutTime extends QuartzJobBean{ private TimesBiz biz; public void setBiz(TimesBiz biz) { this.biz = biz; ...
controller层 /** * 导出到Excel * * @param request * @param response */ @SuppressWarnings("unchecked") @RequestMapping(params = "method=toExcelNo") public void toExcelNo(HttpServletRequest request, HttpServletResponse response) { try { request.setCharacterEncoding( ...
public void upload(HttpServletRequest request, HttpServletResponse response) throws Exception { String name = ""; String uploadUrl = "/upload/game/"; String uploadPath = request.getSession().getServletContext() .getRealPath(uploadUrl) + "\\"; // 用于存放 ...
jquery部分 $.getJSON("<c:url value='/props.do'/>?method=loadCate&cateBigId="+cateBigId+"&curDate="+new Date(),function(data) { var oSheng = $("#cateId");     oSheng.empty();//清空select下拉框     if($.isArray(data["cateid&quo ...
//注意,properties文件只会在编译后的classes文件夹里有一个对应的文件,不会改变src下的文件   String abc = "config_wsSys.properties"; Properties pro = new Properties(); //this.getClass().getClassLoader().getResourceAsStream(this.getClass().getClassLoader().getResource(abc).getPath()); /* this.getClass().getCl ...
我现在做的一个项目,TOP部分是用includ包含在主页的,在本地测试的时候没有什么问题,可是一传上服务器,页面top部分就向下沉了一点,影响美观,后来查看下源代码,是客户端生成页面时,includ的top前面多了一个未知的字符,前TOP页面撑下去了,解决办法: 用UltraEdit-32打开文件,切换到十六进制编辑模式(ctrl+H),察看文件头部是否有EF BB BF。 按F12另存为,格式一栏选:"UTF-8-无BOM", 确定以后就OK了
当表单中查询一段文字,键入单引号,再返回页面, 要求在表单中单引号还是原样,我这样处理 title= title.replace("'", "&#39;"); 在添加内容时做了样同处理, 页面上的表单我用的是单引号,如value='${title}'
Global site tag (gtag.js) - Google Analytics