<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                使用archetype生成微服務模塊 === >[info] Version: 3.4+ 本文旨在:通過命令快速生成新微服務模塊 ## 生成新模塊 通過`mvn` 命令生成微服務模塊 `jeecg-module-erp` 重要:`包名規則 org.jeecg.modules.* ` 不要改,不然bean掃描不到! ## mvn命令 ``` //注意:windows下可直接復制執行, Linux/Macos下 ^ 修改成 \ mvn archetype:generate ^ -DgroupId=org.jeecg.modules.erp ^ -Dmodule=erp^ -Dmodule-up-first=Erp^ -DartifactId=jeecg-module-erp ^ -Dversion=3.4.0^ -DarchetypeGroupId=org.jeecgframework.archetype ^ -DarchetypeArtifactId=jeecg-cloud-gen ^ -DarchetypeVersion=3.4.0 ``` >[warning]重要提醒: > - DarchetypeVersion版本號是固定的不要改 > - 3.3之前的老版本用這個 [老文檔](http://doc.jeecg.com/2194069) ## 集成步驟 ### 一、生成項目結構 ![](https://img.kancloud.cn/c2/2a/c22a3b928b3a6eddc25f8831cbcf565d_410x207.png) ### 二、如何啟動項目 1. 修改啟動端口 - 端口位置:`jeecg-module-{模塊名}-start/application.yml` 的屬性 `server.port` 通過IDEA右鍵運行: `jeecg-module-{模塊名}-start/org.jeecg.Jeecg{模塊名}CloudApplication`啟動項目 訪問服務模塊接口地址:http://127.0.0.1:{端口} ![](https://img.kancloud.cn/2e/df/2edf65a118241b42e2e3560ecd567435_1089x590.png =850x450) 2. 通過命令啟動模塊 >[info] 提醒:前提需要把`jeecg-boot-parent` install到本地倉庫中。 ~~~ cd jeecg-module-{模塊名} mvn clean install cd jeecg-module-{模塊名}-start\target java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-module-{模塊名}-start.jar ~~~ 啟動成功 ![](https://img.kancloud.cn/cd/56/cd56a0674c273ac4ee01eb892e252346_873x924.png =500x500) 在nacos發現此服務 ![](https://img.kancloud.cn/4c/d3/4cd3b175fe66393ff89a0c28453f2e54_1293x645.png) 3. 添加路由網關 進入系統監控 - 路由網關 菜單 ![](https://img.kancloud.cn/cf/b3/cfb3ee7825e4b4bc43f6d6accc19fcf7_2545x633.png) 點擊新增微服務模塊 ![](https://img.kancloud.cn/f6/31/f6318aa28a31a86778e409454c4514cd_486x658.png) 4. 訪問gateway地址 >[info] 通過gateway看到生成的新模塊,就說明配置網關生效了,下面就可以玩服務之間接口互調了。 ![](https://img.kancloud.cn/da/45/da45b426073ea0345444cf4d16ca5321_889x592.png =800x500) 5. 如果需要調用system模塊的api,請引入 ~~~ <!--system cloud api--> <dependency> <groupId>org.jeecgframework.boot</groupId> <artifactId>jeecg-system-cloud-api</artifactId> </dependency> ~~~ *****
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看