91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Maven 配置打不同環境的版本包

發布時間:2020-08-04 03:24:47 來源:網絡 閱讀:1182 作者:IT達仁 欄目:大數據

     Maven 提供了豐富的插件,本文說明了maven 插件打包的步驟:

     pom.xml 文件如下:

<profiles>
   <!-- dev環境 -->
   <profile>
      <id>dev</id>
      <build>
         <filters>
            <filter>log4j.dev.properties</filter>
            <filter>params.dev.properties</filter>
         </filters>
         <resources>
            <resource>
               <directory>src/main/resources</directory>
               <includes>
                  <include>log4j.properties</include>
                  <include>params.properties</include>
                  <include>dictionary.properties</include>
               </includes>
               <filtering>true</filtering>
            </resource>
            <resource>
               <directory>src/main/resources</directory>
               <excludes>
                  <exclude>log4j.properties</exclude>
                  <exclude>params.properties</exclude>
               </excludes>
               <filtering>false</filtering>
            </resource>
         </resources>
      </build>
      <activation>
         <activeByDefault>true</activeByDefault>
         <property>
            <name>env</name>
            <value>dev</value>
         </property>
      </activation>
   </profile>
   
   <!-- pro環境 -->
   <profile>
      <id>pro</id>
      <build>
         <filters>
            <filter>log4j.pro.properties</filter>
            <filter>params.pro.properties</filter>
         </filters>
         <resources>
            <resource>
               <directory>src/main/resources</directory>
               <includes>
                  <include>log4j.properties</include>
                  <include>params.properties</include>
            <include>dictionary.properties</include>
               </includes>
               <filtering>true</filtering>
            </resource>
            <resource>
               <directory>src/main/resources</directory>
               <excludes>
                  <exclude>log4j.properties</exclude>
                  <exclude>params.properties</exclude>
               </excludes>
               <filtering>false</filtering>
            </resource>
         </resources>
      </build>
   </profile>
   
   <!-- uat環境 -->
   <profile>
      <id>uat</id>
      <build>
         <filters>
            <filter>log4j.uat.properties</filter>
            <filter>params.uat.properties</filter>
         </filters>
         <resources>
            <resource>
               <directory>src/main/resources</directory>
               <includes>
                  <include>log4j.properties</include>
                  <include>params.properties</include>
            <include>dictionary.properties</include>
               </includes>
               <filtering>true</filtering>
            </resource>
            <resource>
               <directory>src/main/resources</directory>
               <excludes>
                  <exclude>log4j.properties</exclude>
                  <exclude>params.properties</exclude>
               </excludes>
               <filtering>false</filtering>
            </resource>
         </resources>
      </build>
   </profile>
</profiles>
params.dev.properties 是指在項目里配置的開發環境數據鏈接
params.uat.properties 是指在項目里配置的測試環境數據鏈接
params.pro.properties 是指在項目里配置的生產環境數據鏈接


params.properties 是指上面三個指定的打包的數據鏈接



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

武威市| 泾源县| 宜章县| 清丰县| 公主岭市| 九龙坡区| 突泉县| 海晏县| 留坝县| 朝阳县| 益阳市| 宜昌市| 衡南县| 康保县| 靖远县| 鹤峰县| 图片| 平顶山市| 卓尼县| 当涂县| 日喀则市| 安仁县| 赤水市| 唐海县| 桐柏县| 康定县| 亚东县| 绥芬河市| 钦州市| 筠连县| 延长县| 绿春县| 镇沅| 喀喇| 墨脱县| 东兴市| 沾化县| 麻阳| 五莲县| 湖南省| 汉沽区|