背景概述
- 由于业务需求,SpringBoot写的服务需要将容器从Tomcat更换为Liberty,这里简单记录与分享。
- 开发环境:Spring Tool Suite 4 (Version: 4.1.1.RELEASE)
- JAVA 1.8
详细步骤
- 在STS中安装Liberty Developement tools
-
点击 Help > Eclipse MarketPlace ,搜索 websphere
Eclipse Market
-
选择 IBM WebSphere Application Server Liberty Developer Tools,勾选所有features进行安装。
安装Liberty
-
-
配置Server,在Server下点击Add,添加Liberty服务即可。
Snipaste_2019-03-20_17-54-49.png
- 双击 Liberty Server at localhost即可对其进行配置。
- 在项目pom文件中进行配置:
<profiles>
<profile>
<id>profileLiberty</id>
<properties>
<profiles.sharedjar.exclude></profiles.sharedjar.exclude>
</properties>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
</profiles>
网友评论