title: disable spring autowire
body: <p>i ahave an app with struts2.2 and spring 3.1 and i want to disable spring autowire.
  I googled a little bit and found that i have to put at <code>&lt;beans&gt;</code> tab <code>default-autowire="no"</code>, but this doesn't seems to work.</p>
  
  <p>Then i fount that i can declare this for every <code>&lt;bean&gt;</code> tag like this : <code>&lt;bean autowire="no"&gt;</code>, but this does not seems to work either.</p>
  
  <p>When i enabled spring debug logger i can see a lot aof messages like this : </p>
  
  <blockquote>
    <p>INFO: DEBUG [http-thread-pool-8080(3)] (ConstructorResolver.java:739) - Autowiring by type from bean name 'com.common.actions.PopupAction' via constructor to bean named 'intermedService'</p>
  </blockquote>
  
  <p>and the corresponding entry in applicationConfig.xml is : </p>
  
  <pre><code>&lt;beans default-autowire="no" 
         xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:p="http://www.springframework.org/schema/p"
         xmlns:tx="http://www.springframework.org/schema/tx"
         xsi:schemaLocation="http://www.springframework.org/schema/beans
         http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
         http://www.springframework.org/schema/tx
         http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"&gt;
  
  &lt;bean id="PopupAction" scope="prototype" class="com.common.actions.PopupAction" autowire="no"&gt;
          &lt;constructor-arg type="com.common.services.abs.iIntermedService" ref="intermedService"/&gt;
          &lt;constructor-arg type="com.common.services.abs.iLocationService" ref="locationService"/&gt;
          &lt;constructor-arg type="com.common.services.abs.iUserService" ref="userService"/&gt;
          &lt;constructor-arg type="com.common.services.abs.iPhoneService" ref="phoneService"/&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>why does spring trying to autowire this action as long as i defined the dependency by hand here and i defined <code>auto-wire="no"</code>?</p>
  
  <p>Or this message tells me that the wiring was made by type via constructor(as i wanted) and "Autowiring by type" means that from the 4 params he matched intermedService with my variable intermed service by type (and not by order or something else)? </p>