Here is setter based injection. What are the disadvantages of this type ?
@Component
public class Customer {
private Product product;
@Autowired
public void setProduct(Product product) {
this.product = product;
}
}Here is setter based injection. What are the disadvantages of this type ?
@Component
public class Customer {
private Product product;
@Autowired
public void setProduct(Product product) {
this.product = product;
}
}Create a free account to access the full topic