I have been inserting log4j entries into a mongodb database and each entry has been given an ISODate timestamp:
To create a mapping for this, I had to manually add the timestamp as Spring Roo did not allow timestamp to be used as it was a reserved word.
So I manually added:
But I started getting the following error:
Invalid style specification: MM/dd/yyyy
The stack trace for that error was:
To fis this I attempted to add the ISO date format for the @DateTimeFormat
Which still did not work and had the error.
To resolve this I shitched to use ISO.DATE_TIME as the style: