Comment on @MockitoSpyBean and @MockitoBean in @Configuration

Proprietary

Deprecated: use io.moderne.java.spring.boot3.ReplaceMockitoBeanWithBeanMethod instead, which rewrites the field into a working @Bean method rather than adding a TODO comment. As stated in Spring Docs @MockitoSpyBean and @MockitoBean will only work in tests, explicitly not in @Configuration annotated classes.

io.moderne.java.spring.boot3.CommentOnMockAndSpyBeansInConfigSpring34
mod run . --recipe=io.moderne.java.spring.boot3.CommentOnMockAndSpyBeansInConfigSpring34

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