Get方法传时间参数报错
The request sent by the client was syntactically incorrect
这是因为Spring无法识别传入的时间参数,只需要在时间参数上加上注释即可
就是form表单中有日期,Spring不知道该如何转换,如要在实体类的日期属性上加@DateTimeFormat(pattern=“yyyy-MM-dd”)注解,添加以后就解决了。
Get方法传时间参数报错
The request sent by the client was syntactically incorrect
这是因为Spring无法识别传入的时间参数,只需要在时间参数上加上注释即可
就是form表单中有日期,Spring不知道该如何转换,如要在实体类的日期属性上加@DateTimeFormat(pattern=“yyyy-MM-dd”)注解,添加以后就解决了。