spring-framework/framework-docs/modules/ROOT/pages/web/webmvc
Simon Baslé c92e043bbc Support multiple style of parsing/printing Durations
This commit introduces a notion of different styles for the formatting
of Duration.
The `@DurationFormat` annotation is added to ease selection of a style,
which are represented as DurationFormat.Style enum, as well as a
supported time unit represented as DurationFormat.Unit enum.

DurationFormatter has been retroffited to take such a Style,
optionally, at construction. The default is still the JDK style a.k.a.
ISO-8601.

This introduces the new SIMPLE style which uses a single number + a
short human-readable suffix. For instance "-3ms" or "2h".

This has the same semantics as the DurationStyle in Spring Boot and
is intended as a replacement for that feature, providing access to the
feature to projects that only depend on Spring Framework.

Finally, the `@Scheduled` annotation is improved by adding detection
of the style and parsing for the String versions of initial delay, fixed
delay and fixed rate.

See gh-22013
See gh-22474

Closes gh-30396
2024-07-23 11:56:48 +02:00
..
mvc-config Support multiple style of parsing/printing Durations 2024-07-23 11:56:48 +02:00
mvc-controller Add FragmentsRendering to documentation for return values 2024-07-10 16:50:12 +01:00
mvc-servlet Update docs on HandlerInterceptor 2024-05-13 11:40:32 +01:00
filters.adoc Polishing 2023-12-27 23:23:38 +01:00
message-converters.adoc Move Servlet HTTP Message Conversion to its own section 2024-06-19 15:45:16 +02:00
mvc-ann-async.adoc Merge branch '6.1.x' 2024-07-20 11:53:31 +02:00
mvc-ann-rest-exceptions.adoc Merge branch '6.1.x' 2024-05-13 10:44:09 +02:00
mvc-caching.adoc Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
mvc-config.adoc Enable Section Summary TOC for small pages 2023-05-04 15:35:05 +01:00
mvc-controller.adoc Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
mvc-http2.adoc Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
mvc-security.adoc Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
mvc-servlet.adoc Extract recurring asciidoc links to attributes, cleanup old doc files 2023-11-21 15:59:24 +01:00
mvc-uri-building.adoc Migrate to Asciidoctor Tabs 2023-05-04 15:35:05 +01:00