标签:form orm src 时间格式 es2017 com time code ges
public class Student { private String name; private Integer gender; @DateTimeFormat(pattern="yyyy-MM-dd") private Date birth; @NumberFormat(pattern="#,###") private Integer salary; public Student(String name, Integer gender, Date birth, Integer salary) { super(); this.name = name; this.gender = gender; this.birth = birth; this.salary = salary; } }
在提交时就可以时间格式写成这样
工资写成这样:
标签:form orm src 时间格式 es2017 com time code ges
原文地址:http://www.cnblogs.com/xuesheng/p/7440746.html