title: Spring Boot Constructor based Dependency Injection
body: <p>I'm a beginner with Spring Boot and Dependency Injection and I can't get my head around Constructor based Dependency Injection in Spring Boot. I have class called <code>ParameterDate</code> that look like this:</p>
  
  <pre><code>public class ParameterDate {
  
      private Date parameterDateUnadjusted;
      private Date parameterDateAdjusted;
      private Date parameterDateAdded;
      private Date parameterDateChanged;
  }
  </code></pre>
  
  <p>I have another class where I want to use <code>ParameterDate</code>. Normally I would do Field based Injection with </p>
  
  <pre><code>@Autowired
  ParameterDate parameterDate;
  </code></pre>
  
  <p>And where ever needed I just use <code>parameterDate</code>.</p>
  
  <p>How would I do this with Constructor based Injection? </p>