如果,xml配置文件和接口不在同一个文件夹下,可能遇到绑定出错问题,这是因为maven只会将resource文件夹下的xml文件导出,而忽略其他文件夹下的xml文件
所以我们应该在pom.xml文件下添加如下设置,让maven导出其他文件夹下的xml文件

   <!--在build中配置resources,来防止我们资源导出失败的问题-->
   <build>
       <resources>
           <resource>
               <directory>src/main/resources</directory>
               <includes>
                   <include>**/*.properties</include>
                   <include>**/*.xml</include>
               </includes>
               <filtering>true</filtering>
           </resource>
           <resource>
               <directory>src/main/java</directory>
               <includes>
                   <include>**/*.properties</include>
                   <include>**/*.xml</include>
               </includes>
               <filtering>true</filtering>
           </resource>
       </resources>
   </build>


醉后不知天在水,满船清梦压星河