zoukankan      html  css  js  c++  java
  • Mapped Statements collection does not contain value for xxxx mybatis xml maven package install

    Mapped Statements collection does not contain value for xxxx  

    原因是 maven package的时候 src/main/java下面的xml文件没有拷贝进war包,导致部署到服务器上会出错

    解决方法:

    pom.xml 增加:

     1 <!-- Copy xml files to main output folder, because the compiler will not 
     2             copy files other than ".java". -->
     3         <resources>
     4             <resource>
     5                 <directory>src/main/java</directory>
     6                 <includes>
     7                     <include>**/*.xml </include>
     8                 </includes>
     9             </resource>
    10             <resource>
    11                 <directory>src/main/resources</directory>
    12                 <includes>
    13                     <include>*.xml </include>
    14                     <include>*.properties </include>
    15                 </includes>
    16             </resource>
    17         </resources>

    增加在<build></bulid>里面

  • 相关阅读:
    隔离级别
    分析Hello2代码
    正则表达式
    Filter and servlet
    部署描述符
    Annotation
    LDAP and Implementation
    Restful levels and Hateoas
    servlet injection analysis
    隔离级别
  • 原文地址:https://www.cnblogs.com/shaman/p/3095487.html
Copyright © 2011-2022 走看看