Replace deprecated RequestMatcherProvider with new API

Proprietary

Replaces the deprecated org.springframework.boot.autoconfigure.security.servlet.RequestMatcherProvider with org.springframework.boot.security.autoconfigure.actuate.web.servlet.RequestMatcherProvider. The new interface adds an HttpMethod parameter to the getRequestMatcher method.

io.moderne.java.spring.boot4.ReplaceDeprecatedRequestMatcherProvider
mod run . --recipe=io.moderne.java.spring.boot4.ReplaceDeprecatedRequestMatcherProvider

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. Add a null method argument 1 in methods org.springframework.boot.autoconfigure.security.servlet.RequestMatcherProvider getRequestMatcher(java.lang.String)
  2. Add comment to method invocations
  3. Change type org.springframework.boot.autoconfigure.security.servlet.RequestMatcherProvider to org.springframework.boot.security.autoconfigure.actuate.web.servlet.RequestMatcherProvider