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

setIgnoreUnknownPathExtensions

open fun setIgnoreUnknownPathExtensions(ignore: Boolean): Unit

Whether to ignore requests with path extension that cannot be resolved to any media type. Setting this to false will result in an HttpMediaTypeNotAcceptableException if there is no match.

By default this is set to true.