[转]maven管理SpringMVC+Mybatis无法加载Mapper.xml

原文地址:http://www.07net01.com/2015/08/907075.html

只需要在pom.xml中配置如下代码:

<build>
 <resources>
      <resource>
        <directory>src/main/Java</directory>
        <includes>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
        </includes>
        <filtering>false</filtering>
      </resource>
    </resources>
</build>

  

posted @ 2016-06-10 14:33  Zenz  Views(280)  Comments(0)    收藏  举报