JavaScript is disabled on your browser.
Skip navigation links
Overview
Class
Use
Tree
Deprecated
Index
Search
Help
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Required Element Summary
Element Details
value
org.springframework.boot.convert
DurationUnit
Contents
Hide sidebar
❮
❯
Show sidebar
Description
Required Element Summary
Element Details
value
Annotation Interface DurationUnit
@Target
({
FIELD
,
PARAMETER
})
@Retention
(
RUNTIME
)
@Documented
public @interface
DurationUnit
Annotation that can be used to change the default unit used when converting a
Duration
.
Since:
2.0.0
Author:
Phillip Webb
Required Element Summary
Required Elements
Modifier and Type
Required Element
Description
ChronoUnit
value
The duration unit to use if one is not specified.
Element Details
value
ChronoUnit
value
The duration unit to use if one is not specified.
Returns:
the duration unit