实现添加功能需要注意日期格式
在用SpringBoot实现CRUD案例的新增功能时候,要注意日期格式,默认是 yyyy/MM/dd 的格式。
如果格式是2017-12-12;2017.12.12,可以在application.properties中加上这么一句,
则SpringMVC将页面提交的值转换为指定的类型;
spring.mvc.date-format=yyyy-MM-dd
在用SpringBoot实现CRUD案例的新增功能时候,要注意日期格式,默认是 yyyy/MM/dd 的格式。
如果格式是2017-12-12;2017.12.12,可以在application.properties中加上这么一句,
则SpringMVC将页面提交的值转换为指定的类型;
spring.mvc.date-format=yyyy-MM-dd