zoukankan      html  css  js  c++  java
  • MAVEN打包丢失xml文件解决办法

    MAVEN打包默认只包含src/main/java下的class文件,如果需要包含xml、properties等文件,请在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>             
        </resource>  
        <resource>             
            <directory>src/main/webapp</directory>             
        </resource>  
        -->      
    </resources>
  • 相关阅读:
    poj 1010
    poj 1060
    poj 1001
    POJ 2769
    POJ 2559
    poj 2403
    POJ 1088
    设置全屏与退出全屏
    iframe 父子页面方法调用
    Web 前端面试小知识
  • 原文地址:https://www.cnblogs.com/coshaho/p/4908766.html
Copyright © 2011-2022 走看看