Find @RequestMapping(method = [RequestMethod.GET]) candidates for @GetMapping
Proprietary@RequestMapping with an explicit method = [...] is the long-form spelling of @GetMapping/@PostMapping/etc. The shortcut annotations were introduced specifically to replace this pattern.
org. openrewrite. kotlin. spring. FindRequestMappingMethodGetMapping$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindRequestMappingMethodGetMapping$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.