美文网首页
SpringBoot项目将容器从Tomcat换成Liberty

SpringBoot项目将容器从Tomcat换成Liberty

作者: CaptainXero | 来源:发表于2019-03-20 17:56 被阅读0次
背景概述
  • 由于业务需求,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>

相关文章

网友评论

      本文标题:SpringBoot项目将容器从Tomcat换成Liberty

      本文链接:https://www.haomeiwen.com/subject/bmutvqtx.html