spring-framework / org.springframework.web.accept / ContentNegotiationManagerFactoryBean / setDefaultContentTypeStrategy

setDefaultContentTypeStrategy

open fun setDefaultContentTypeStrategy(strategy: ContentNegotiationStrategy): Unit

Set a custom ContentNegotiationStrategy to use to determine the content type to use when no content type is requested.

By default this is not set.

See Also
#setDefaultContentType

Since
4.1.2