<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                在實際的生產環境中,往往存在多個環境,例如開發環境(dev),測試環境(test),生產環境(prod),并且不同環境的數據庫和日志記錄等配置的都不相同,為了每次發布不同環境的包時,不來回的修改這些配置,特引入了spring profile,引入之后,我們只需要把所有環境的配置都預先列出來,在每次發布不同環境的包的時候,只需要選擇當前激活的是哪個環境的配置即可快速切換配置,關于spring profile的詳細描述可參考這篇博文[https://www.jianshu.com/p/948c303b2253](https://www.jianshu.com/p/948c303b2253) 在yml配置中,我們用`---`來切分不同profile的配置,如下? ![image_1c4s14cdf16g8uq017v05181h9bfa.png-29kB](https://img-blog.csdnimg.cn/20181228174639442) 在分割線的下邊我們就可以配置不同環境的配置了,`profile`可以配置多個,只需要用`spring.profiles`來標記當前節段的`profile`的名字即可? ![image_1c4s1asg31vkknd21jd51momo06fn.png-20.5kB](https://img-blog.csdnimg.cn/20181228174639481) 并用`spring.profiles.active`來激活當前的`profile`配置即可? ![image_1c4s1efat1odh1j393t310i6q6fg4.png-36.9kB](https://img-blog.csdnimg.cn/20181228174639620) `---`把配置切分成了多個節段,其中第一節是所有profile共有的配置,例如guns的配置中的這一大段? ![image_1c4s1grk5r3s1j1f1ujn19tr1ftggh.png-165.9kB](https://img-blog.csdnimg.cn/20181228174639665) 第一節段`---`下方的配置則是不同的profile的配置
                  <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>

                              哎呀哎呀视频在线观看