时间格式转字符串出错(You might need to add explicit type casts)

java时间格式转换成hh:mm:ss出错

报错信息:You might need to add explicit type casts

原因是我把格式输入错了 正确的应该是 yyyy-MM-dd HH:mm:ss

一定需要注意大小写

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章