title: How to @Autowire bean with constructor
body: <p>I am trying to define a bean and @Autowire org.springframework.jdbc.object.StoredProcedure which required 2 constructor. Is there a way I can pass constructor argument while wiring these beans ? Below is my code:</p>
  
  <pre><code>@Component("procedure")
  public class ExecuteStoreProcedure extends AbstractImutableDAO{
  
      @Autowired
      private StoredProcedure procedure;
  
  ......
  }
  </code></pre>
  
  <p>Here StoredProcedure have a constructor to pass jdbctemplate and procedure name, which is dynamic. </p>