title: @Autowired vs @Required on setter
body: <p>I'm curious to know what's the difference between code like this:</p>
  
  <pre><code>class MyClass {
     @Autowired
     MyService myService;
  }
  </code></pre>
  
  <p>and code like this:</p>
  
  <pre><code>class MyClass {
     MyService myService;
  
     @Required
     public void setMyService(MyService val) {
         this.myService = val;
     }
  }
  </code></pre>