Remove path extension content negotiation methods

Proprietary

Remove calls to favorPathExtension() and ignoreUnknownPathExtensions() on ContentNegotiationConfigurer. These methods and the underlying PathExtensionContentNegotiationStrategy were removed in Spring Framework 7.0. Path extension content negotiation was deprecated due to URI handling issues. Use query parameter-based negotiation with favorParameter(true) as an alternative.

io.moderne.java.spring.framework.RemovePathExtensionContentNegotiation
mod run . --recipe=io.moderne.java.spring.framework.RemovePathExtensionContentNegotiation

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Remove method invocations org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer favorPathExtension(boolean)
  2. Remove method invocations org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer ignoreUnknownPathExtensions(boolean)