Rename bean
MSALRenames a Spring bean, both declaration and references.
org. openrewrite. java. spring. RenameBeanRequired
The existing name of the bean to rename.
The new name to give the matching bean.
Optional
The fully qualified name of the bean type to rename. If omitted, beans are matched by name alone.
mod run . --recipe= org. openrewrite. java. spring. RenameBean \
-P oldName= fooBean \
-P newName= barBeanInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.