I know I can bind a Spring MVC form bean to a LocalDateTime using:
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private LocalDateTime startTime;
This will convert a String like 2016-01-11T15:05:05.123Z
to a LocalDateTime
object.
I have found some docs on this here: http://blog.codeleak.pl/2014/06/spring-4-datetimeformat-with-java-8.html
I could not find how to do the same with java.time.Duration
. How do I do this?