Answers for "what is meant by no classes should use field injection"

0

what is meant by no classes should use field injection

field injection is when you inject a Bean with @Autowired like this:
public class MyComponent {
    @Autowired
    private Cart cart;
}
Posted by: Guest on October-19-2021

Code answers related to "what is meant by no classes should use field injection"

Browse Popular Code Answers by Language