//创建时间
Date create_time = new Date();  

new UserPojo(name,sex,no,create_time);

 

这样自动就转为了,入库的格式了.

@DateTimeFormat(pattern="yyyy-MM-dd H:i:s")
private Date create_time=null;

相关文章:

  • 2022-12-23
  • 2021-09-17
  • 2021-10-07
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2021-11-05
  • 2022-12-23
相关资源
相似解决方案