问题 I am not able to autowire a bean while passing values in paramterized constructor. How to call the parameterized constructor using SpringBoot? @Component public class MainClass { public void someTask() { AnotherClass obj = new AnotherClass(1, 2); } } //Replace the new AnotherClass(1, 2) using Autowire? @Component public class AnotherClass { private int number,age; public AnotherClass(int number, int age) { super(); this.number = number; this.age = age; } } I want to autowire "AnotherClass"