Java错误——java.lang.NumberFormatException: multiple points

背景

  • 一次开发,将SimpleDateFormat作为参数传参到各个方法中,结果报错java.lang.NumberFormatException: multiple points

原因

  • SimpleDateFormat是线程不安全的,只能在单线程中使用
posted @ 2021-06-01 14:11  话·醉月  阅读(350)  评论(0编辑  收藏  举报