`
wgbaoweii
  • 浏览: 28741 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

List排序

<!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> 方法1:Collections.sort(listA, new Comparator<Person>() {    public int compare(Person arg0, Person arg1) {        return arg0.getOrder().compareTo(arg1.getOrder());    }});   方法2:Collections.sort(li ...
1、List转JSONObjectMapper mapper = new ObjectMapper();mapper.setSerializationInclusion(Inclusion.NON_NULL);mapper.setSerializationInclusion(Inclusion.NON_EMPTY);mapper.setPropertyNamingStrategy(PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES);System.out.println("{\"button\& ...
之前使用tomcat7时遇到启动报错问题,日志如下:严重: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mypro]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.co ...

MD5加密解密

/***  * MD5加码 生成32位md5码  */ public static String md5(String inStr) { MessageDigest md5 = null; try { md5 = MessageDigest.getInstance("MD5"); } catch (Exception e) { logger.error("MD5加密失败!"); return null; } char[] charArray = inStr.toCharArray(); byte[] byteArray = ne ...
合并图片

dtreeDemo

dtreeDemo assign auth
jQuery跨域问题简单实例,个人收藏,仅供参考。
后台: response.setContentType("text/html;charset=UTF-8"); response.setCharacterEncoding("utf-8"); IOUtils.write(String.format("{\"%s\":\"%s\"}","fileId",model.getId()),response.getOutputStream()); IOUtils.closeQuietly(response.getOutputSt ...
SimpleUpload
hibernateValidateDemo,springmvc i18n,demo收藏
ludo-jquery-treetable,ludo-jquery-treetable,ludo-jquery-treetable,
IntelliJ IDEA 字体   --------- TheSansMonoCondensed_Plain
informationTips,informationTips,informationTips,informationTips,informationTips,

pubuliu

pubuliu demo
elegantstruts,elegantstruts,elegantstruts,
Global site tag (gtag.js) - Google Analytics