Remove the @Autowired annotation on inferred constructor

MSAL

Spring can infer an autowired constructor when there is a single constructor on the bean. This recipe removes unneeded @Autowired annotations on constructors.

org.openrewrite.java.spring.NoAutowiredOnConstructor
mod run . --recipe=org.openrewrite.java.spring.NoAutowiredOnConstructor

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