SpringBoot項(xiàng)目將容器從Tomcat換成Liberty

背景概述
  • 由于業(yè)務(wù)需求,SpringBoot寫的服務(wù)需要將容器從Tomcat更換為Liberty,這里簡單記錄與分享。
  • 開發(fā)環(huán)境:Spring Tool Suite 4 (Version: 4.1.1.RELEASE)
  • JAVA 1.8
詳細(xì)步驟
  • 在STS中安裝Liberty Developement tools
    1. 點(diǎn)擊 Help > Eclipse MarketPlace ,搜索 websphere


      Eclipse Market
    2. 選擇 IBM WebSphere Application Server Liberty Developer Tools,勾選所有features進(jìn)行安裝。
      安裝Liberty
  1. 配置Server,在Server下點(diǎn)擊Add,添加Liberty服務(wù)即可。
    Snipaste_2019-03-20_17-54-49.png
  • 雙擊 Liberty Server at localhost即可對(duì)其進(jìn)行配置。
  1. 在項(xiàng)目pom文件中進(jìn)行配置:
<profiles>
      <profile>
            <id>profileLiberty</id> 
            <properties>
                <profiles.sharedjar.exclude></profiles.sharedjar.exclude>
            </properties>
            <activation> 
                <activeByDefault>true</activeByDefault> 
            </activation> 
        </profile>
 </profiles>
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容