1.日志里面需要记录入参,之前一般使用StringUtils.formt()方法,但是如果入参含有空值,就会报错。这个时候可以使用MessageFormat方法。用法

format(String pattern, Object ... arguments) 

比如:
logger.info(MessageFormat.format("平台分类已存在,aprentCode:{0},name,{1}",parentCode,name));

最新文章

  1. JavaScript的chapterIII
  2. Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx': no matching editors or conversion strategy found
  3. spring3 的restful API RequestMapping介绍
  4. Elasticsearch 插件安装
  5. struts2获得request和session对象
  6. IRS-P6数据介绍
  7. 如何在KVM中管理存储池
  8. Ext Grid 加载超时设置timeout: 180000
  9. eclipse下maven插件的安装
  10. HDU 1241 DFS
  11. W3C------JS
  12. Unity shader学习之屏幕后期处理效果之高度雾,重建world pos方法2
  13. 根据select出来的数据进行update
  14. SpringBoot利用注解@Value获取properties属性为null
  15. <Google><APAC><kickstart><2017.05.07><2017RoundB>
  16. redis的5种类型和所用命令
  17. MySql出现大量LAST_ACK的解决办法
  18. 1.9yield方法
  19. 为harbor部署swagger-ui
  20. 2017 清北济南考前刷题Day 7 morning

热门文章

  1. Sublime Text 3新建工程
  2. 【Maven学习】maven中依赖的配置详解
  3. 21.Decorator修饰器
  4. apktook 反编译错误
  5. js解决千分符问题
  6. PHP之mb_stripos使用
  7. Java reflect 反射 3 Class.forname
  8. tar.gz和bin,以及rpm,deb等linux后缀的文件的区别
  9. gulp教程之gulp中文API
  10. HandlerInterceptor与MethodInterceptor