摘要: 工作将近一年,开始涉及设计模式,买了一本大话设计模式,.Net案例,在这里自己总结,只求触到冰山一角.... 阅读全文
posted @ 2016-06-07 21:09 user_孙 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1 import java.sql.Timestamp; 2 import java.util.Collection; 3 import java.util.Date; 4 5 import org.soul.util.json.JsonDateValueProcessor; 6 import org.soul.util.json.JsonIgnorePropertyFilter;... 阅读全文
posted @ 2016-06-06 23:12 user_孙 阅读(254) 评论(0) 推荐(0) 编辑
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * 农历(阴历)工具类 * */ public class LunarCalendar { private int year;// 农... 阅读全文
posted @ 2016-06-06 23:08 user_孙 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 这里获得汉字的拼音使用了pinyin4j这个插件,因为多音字的原因效果并不理想 阅读全文
posted @ 2016-06-05 23:07 user_孙 阅读(471) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 查询类中符合指定annotation的属性信息 3 * @param objCls 实体类 4 * @param annCls 注解类 5 * @return HashMap 6 */ 7 public static HashMap getFieldAnnotationsMsg(final Class ... 阅读全文
posted @ 2016-06-05 22:59 user_孙 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 按给定对象属性为参数ls分组整理 3 * @param ls 集合 4 * @param propertyName 对象中的某个属性 5 * @return HashMap(key=propertyValue,Value=ArrayList) 6 * @throws IllegalAccessException ... 阅读全文
posted @ 2016-06-05 22:04 user_孙 阅读(138) 评论(0) 推荐(0) 编辑
摘要: function reloadSmartMenu() { var jsElem = document.createElement('script'); jsElem.src= path+'/system/config/js/reloadStat.js'; document.getElementsByTagName('head')[0].appendChild(jsElem... 阅读全文
posted @ 2016-06-05 18:56 user_孙 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 有个需求是统计的时候,为生成的html表格提供导出功能,但是这样导出Excel不会显示自身的表格 影响美观,但是excel会显示html的css样式,这里可以通过处理行对象的方式进行导出,但是处理起纵向合并比较麻烦,这里待续! 阅读全文
posted @ 2016-05-28 23:01 user_孙 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 加载Properties文件 3 * @param path Properties文件路径 4 * @return 5 */ 6 private static Properties getClasspathProperties(String path) { 7 Assert.notNull(path... 阅读全文
posted @ 2016-05-27 23:10 user_孙 阅读(162) 评论(0) 推荐(0) 编辑