title: web app startup warning:No MyBatis mapper was found in ... ,Please check your configuration
body: <p>My configuration is:</p>
  
  <pre><code>spring-4.2.3
  mybatis-3.3.0
  mybatis-spring-1.2.3
  </code></pre>
  
  <p>mapper looks like:</p>
  
  <pre><code>package com.vsi.idp.map.server.mapper;
  //imports...
  public interface SeniorMapper extends BaseMapper&lt;Long, Senior&gt;
  {
     @Results({...})
     @Select(...)
     public List&lt;Senior&gt; query(...);
  }
  </code></pre>
  
  <p><strong>ServiceImpl</strong> looks like:</p>
  
  <pre><code>package com.vsi.idp.map.server;
  //imports...
  @Service("querySenior")
  public class SeniorQueryServiceImpl extends RemoteServiceServlet implements     SeniorQueryService
  {
      @Autowired
      SeniorMapper mapper;
  
      @Override
      public List&lt;Senior&gt; query(Address address, String careType){...}
  }
  </code></pre>
  
  <p><strong>applicationContext.xml</strong> looks like:</p>
  
  <pre><code>&lt;beans ... default-lazy-init="true"&gt;
     &lt;!-- MyBatis Mapper Interfaces --&gt;
     &lt;mybatis:scan base-package="com.vsi.idp.map.server.mapper" /&gt;
  
     //other configurations
  &lt;/beans&gt;
  </code></pre>
  
  <p>Spock <strong>unit test</strong> looks like below,and <strong>runs as expected</strong></p>
  
  <pre><code>@ContextConfiguration(locations = "file:war/WEB-INF/applicationContext.xml")
  public class SeniorQueryServiceImplTest extends Specification{
  
    @Autowired
    SeniorQueryServiceImpl service
  
    def "query by full address"(){
       //blabla
    }
  }
  </code></pre>
  
  <p>But when start web application,I got this warning:</p>
  
  <pre><code>WARNING: No MyBatis mapper was found in '[com.vsi.idp.map.server.mapper]' package. Please check your configuration. 
  </code></pre>
  
  <p>So,how to solve this problem?</p>
  
  <p><strong>UPDATE</strong>it is a gwt web application,full error stack is:</p>
  
  <pre><code>INFO: Root WebApplicationContext: initialization started Nov 23, 2015 7:12:29 PM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
  INFO: Refreshing Root WebApplicationContext: startup date [Mon Nov 23 19:12:29 CST 2015]; root of context hierarchy Nov 23, 2015 7:12:29 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml] Nov 23, 2015 7:12:29 PM org.mybatis.spring.mapper.ClassPathMapperScanner doScan
  WARNING: No MyBatis mapper was found in '[com.vsi.idp.map.server.mapper]' package. Please check your configuration.Nov 23, 2015 7:12:30 PM org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor &lt;init&gt;
  INFO: JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
  Module setup completed in 1698 ms
  Nov 23, 2015 7:12:30 PM org.springframework.web.context.ContextLoader initWebApplicationContext
  INFO: Root WebApplicationContext: initialization completed in 1557 ms
  </code></pre>