I was wondering what is the difference between the below solutions, why using solution 2? any benefits?
solution 1:
public A{ @Autowire private B b