SSM整合中 Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/zjazn/dao/BookMapper.xml

请确保pom.xml的build标签有如下内容提示内容。

  <build>
    <!--不写报错-->
    <resources>
      <resource>
        <directory>src/main/java</directory>
        <includes>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
        </includes>
        <filtering>false</filtering>
      </resource>
      <resource>
        <directory>src/main/resources</directory>
        <includes>
          <include>**/*.properties</include>
          <include>**/*.xml</include>
        </includes>
        <filtering>false</filtering>
      </resource>
    </resources>
</build>

 

posted @ 2021-01-02 21:22  小庄的blog  阅读(138)  评论(0编辑  收藏  举报