Find HttpServletRequest parameters in controllers

Proprietary

Reaching for HttpServletRequest inside a controller handler bypasses Spring's argument-resolver chain (@PathVariable, @RequestParam, @RequestHeader, @RequestBody, etc.). Each of those binds the value with type conversion and validation; using the raw servlet request loses that and couples the handler to the servlet API.

org.openrewrite.kotlin.spring.FindHttpServletRequestParameter$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.spring.FindHttpServletRequestParameter$KtRecipe'

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