pessoal mudei de calendar para LocalDate e esta com esse erro:
Field error in object 'emprestimo' on field 'dataEmprestimo': rejected value [02/06/2017]; codes [typeMismatch.emprestimo.dataEmprestimo,typeMismatch.dataEmprestimo,typeMismatch.java.time.LocalDate,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [emprestimo.dataEmprestimo,dataEmprestimo]; arguments []; default message [dataEmprestimo]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.time.LocalDate' for property 'dataEmprestimo'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.time.LocalDate] for value '02/06/2017'; nested exception is java.lang.IllegalArgumentException: Parse attempt failed for value [02/06/2017]]
Field error in object 'emprestimo' on field 'primeiraEmprestimo': rejected value [02/06/2017]; codes [typeMismatch.emprestimo.primeiraEmprestimo,typeMismatch.primeiraEmprestimo,typeMismatch.java.time.LocalDate,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [emprestimo.primeiraEmprestimo,primeiraEmprestimo]; arguments []; default message [primeiraEmprestimo]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'java.time.LocalDate' for property 'primeiraEmprestimo'; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [java.time.LocalDate] for value '02/06/2017'; nested exception is java.lang.IllegalArgumentException: Parse attempt failed for value [02/06/2017]]
Codigo:
// data em que o dinheiro foi entregue
private LocalDate dataEmprestimo;
// data em que deve ser pago a primeira parcela
private LocalDate primeiraEmprestimo;