Package io.micronaut.serde.config
Interface SerdeConfiguration
@ConfigurationProperties("micronaut.serde")
public interface SerdeConfiguration
- Author:
- gkrocher
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThe date format to use when serializing and deserializing dates.The packages containing introspections that should be regarded as serializable by default without the need to add theSerdeable
annotation.boolean
Whether to write dates as time stamps.
-
Field Details
-
PREFIX
- See Also:
-
-
Method Details
-
getDateFormat
The date format to use when serializing and deserializing dates.- Returns:
- the date format to use
-
isWriteDatesAsTimestamps
@Bindable(defaultValue="true") boolean isWriteDatesAsTimestamps()Whether to write dates as time stamps. Defaults totrue
.If set to
false
the default ISO formats will be used to format dates as strings.- Returns:
- Whether to write dates as timestamps
- See Also:
-
getLocale
- Returns:
- The default locale to use.
-
getTimeZone
- Returns:
- The default time zone to use.
-
getIncludedIntrospectionPackages
The packages containing introspections that should be regarded as serializable by default without the need to add theSerdeable
annotation.- Returns:
- the packages to include
-