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


      Eclipse Market
    2. 选择 IBM WebSphere Application Server Liberty Developer Tools,勾选所有features进行安装。
      安装Liberty
  1. 配置Server,在Server下点击Add,添加Liberty服务即可。
    Snipaste_2019-03-20_17-54-49.png
  • 双击 Liberty Server at localhost即可对其进行配置。
  1. 在项目pom文件中进行配置:
<profiles>
      <profile>
            <id>profileLiberty</id> 
            <properties>
                <profiles.sharedjar.exclude></profiles.sharedjar.exclude>
            </properties>
            <activation> 
                <activeByDefault>true</activeByDefault> 
            </activation> 
        </profile>
 </profiles>
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容