无法解析日期:Spring无法解析的日期

时间:2019-07-18 13:24:32

标签: java spring date parsing illegalargumentexception

我一直无法从Spring Boot应用程序向mysql数据库输入数据。 我抛出了这个异常:

function myfunction() {
  console.log('Function called');
}

module.exports.myfunction = myfunction;

在我的经典文章中,我做到了:

$ node ./test.js
Function called

在类控制器中:

Resolved [org.springframework.web.method.annotation.MethodArgumentTypeMismatchException: Failed to convert value of type 'java.lang.String' to required type 'java.sql.Date'; nested exception is java.lang.IllegalArgumentException: Could not parse date: Unparseable date: "2018-06-17"]

在jsp中:

@DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    private Date dataCreazione;

我做错了什么?

谢谢

0 个答案:

没有答案
相关问题