title: how to inject parent class property with spring annotation
body: <p>parent class is like this:</p>
  
  <pre><code>public class BaseDAO{
      private DBRoute defaultDB;
  
      public DBRoute getDefaultDB()
      {
          return this.defaultDB;
      }
  
      public void setDefaultDB(DBRoute defaultDB)
      {
          this.defaultDB = defaultDB;
      }
  }
  </code></pre>
  
  <p>I have create beans like below:</p>
  
  <pre><code>&lt;bean id="adsConfigDB" class="net.flyingfat.common.dbroute.config.DBRoute"&gt;
      &lt;constructor-arg value="adsConfig" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="adsBizDateDB" class="net.flyingfat.common.dbroute.config.DBRoute"&gt;
      &lt;constructor-arg value="adsBizDate" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I want to inject superclass property <strong>defaultDB</strong> in subclass through byName, not byType, which is in subclass inject <strong>defaultDB</strong> using <strong>adsConfigDB</strong> or <strong>adsBizDateDB</strong>. Is there any way to do this with spring annotations? I already tried Autowired or Resource with constructor which doesn't work. By the way, I already know this can be done using XML.</p>