- 浏览: 28741 次
- 性别:
- 来自: 上海
最新评论
文章列表
<!--?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加码 生成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 ...
后台:
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 ...
hibernateValidateDemo,springmvc i18n,demo收藏
ludo-jquery-treetable,ludo-jquery-treetable,ludo-jquery-treetable,
IntelliJ IDEA 字体 --------- TheSansMonoCondensed_Plain
informationTips,informationTips,informationTips,informationTips,informationTips,
elegantstruts,elegantstruts,elegantstruts,