改一下格式
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-->
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-->
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
如果把它改为varchar类型就可以了.