2016年11月30日
摘要: public static <T> void export(OutputStream os, List<T> obj, String[] head,String[] fidldName) throws Exception { // 创建工作薄 WritableWorkbook workbook = 阅读全文
posted @ 2016-11-30 09:03 Longevity 阅读(220) 评论(0) 推荐(0) 编辑
  2016年11月25日
摘要: 调用方法: 阅读全文
posted @ 2016-11-25 17:35 Longevity 阅读(316) 评论(0) 推荐(0) 编辑
  2016年11月9日
摘要: package com.office.utility; import java.util.regex.Pattern; /** * 校验器:利用正则表达式校验邮箱、手机号等 * * @author liujiduo * */public class Validator { /** * 正则表达式:验 阅读全文
posted @ 2016-11-09 15:02 Longevity 阅读(392) 评论(0) 推荐(0) 编辑
  2016年8月18日
摘要: 对需要传递的中文参数先进行两次转码: 1.js文件中使用encodeURI()方法。var url = "Validate.jsp?id=" + encodeURI(encodeURI(idField.value)); 2.在后台中对传递的参数进行URLDecoder解码String usernam 阅读全文
posted @ 2016-08-18 10:05 Longevity 阅读(518) 评论(0) 推荐(0) 编辑
  2015年10月26日
摘要: 1.创建xx_en.properties ,xx_zh-HK.properties 等配置文件》关联中英文字段 阅读全文
posted @ 2015-10-26 11:12 Longevity 阅读(110) 评论(0) 推荐(0) 编辑
摘要: true 6 10 用户名长度必须保证在${minLength}到${maxLength}之间 -... 阅读全文
posted @ 2015-10-26 10:32 Longevity 阅读(173) 评论(0) 推荐(0) 编辑
  2015年10月15日
摘要: 1基于注解配置bean组件扫苗(component scanning):SPring能够从classpath下自动扫描,侦测和实例化具体有特定的注解的组建特定组件包括:-@Component:基本注解,表示了一个受Spring管理的组件-@Respositor:标识持久层组件-@service:标识... 阅读全文
posted @ 2015-10-15 22:26 Longevity 阅读(325) 评论(0) 推荐(0) 编辑
摘要: AOP全称 aspect-priented programming 它是面向切面编程的思想核心AOp和OOP即面向对象的编程语言,不相冲突,他们是两个相辅相成的实际模型Spring的同期并不依赖与AOPAOP术语介绍cross-cutting concern:系统层面上的服务穿插到业务逻辑的处理流程... 阅读全文
posted @ 2015-10-15 18:20 Longevity 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 转换日期和字符串继承PropertyEditorSupport重写其setAsText方法 阅读全文
posted @ 2015-10-15 14:35 Longevity 阅读(247) 评论(0) 推荐(0) 编辑
摘要: propertyPlaceholderConfigurer (Sring的内建propertyEditor,它是beanFactoryPostProcessor的实现类)属性占位符配置器 作用:读取properties配置文件优点;不需打开spring配置文件propertyOverrideConf... 阅读全文
posted @ 2015-10-15 14:10 Longevity 阅读(168) 评论(0) 推荐(0) 编辑