I have recently started with spring and I am facing problem in understanding this small code snipet.
@Component
public class A {
@Autowired
private B b;
}
@Component
public class B {
}
Since there are no setter methods provided and the field 'b' is private, how does spring perform this injection.