方法一:
最簡單的方法,實體類定義String類型,直接用字符串插入數據庫
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS") pojo.setTime(format.format(System.currentTimeMills()));
方法一:
最簡單的方法,實體類定義String類型,直接用字符串插入數據庫
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS") pojo.setTime(format.format(System.currentTimeMills()));
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。