SpringBoot项目将容器从Tomcat换成Liberty

背景概述
  • 由于业务需求,SpringBoot写的服务需要将容器从Tomcat更换为Liberty,这里简单记录与分享。
  • 开发环境:Spring Tool Suite 4 (Version: 4.1.1.RELEASE)
  • JAVA 1.8
详细步骤
  • 在STS中安装Liberty Developement tools
    1. 点击 Help > Eclipse MarketPlace ,搜索 websphere


      SpringBoot项目将容器从Tomcat换成Liberty_第1张图片
      Eclipse Market
    2. 选择 IBM WebSphere Application Server Liberty Developer Tools,勾选所有features进行安装。
      SpringBoot项目将容器从Tomcat换成Liberty_第2张图片
      安装Liberty
  1. 配置Server,在Server下点击Add,添加Liberty服务即可。
    SpringBoot项目将容器从Tomcat换成Liberty_第3张图片
    Snipaste_2019-03-20_17-54-49.png
  • 双击 Liberty Server at localhost即可对其进行配置。
  1. 在项目pom文件中进行配置:

      
            profileLiberty 
            
                
            
             
                true 
             
        
 

你可能感兴趣的:(SpringBoot项目将容器从Tomcat换成Liberty)