Home > Back-end >  Spring integration mongo for help
Spring integration mongo for help

Time:10-30

Big door, I'm directing a field is stored in the string, the corresponding entity class is stored in the date, in the spring - data - mongo, how to transform this field after on the map?
If I don't do any treatment, will quote: under Caused by: org. Springframework. Core. The convert. ConversionFailedException: Failed to convert from type [Java. Lang. String] to type/Java. Util. The Date for the value '2002-07-01';
It was useless to using annotations @ dateTimeFormat
All use converter will try to put the string into the date, certainly also not line, is I use the wrong position?
Bosses, what ah
  • Related