我一直无法从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;
我做错了什么?
谢谢