关于SpringBoot 接受Date类型以及返回时间格式的记录

最近开始接触SpringBoot,不得不说他很强大。  下面说说SpringBoot接受时间的问题,网上的方法不少,我就说说我本身的。java 接受时间:mysql     @NotNull(message = "过时日不能为空")     @DateTimeFormat(pattern="yyyy-MM-dd hh:mm:ss")     private Date expired;   用@Da
相关文章
相关标签/搜索