Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Websphere liberty in spring boot application

I want to use Websphere liberty in spring boot application instead of tomcat server. If I am correct it is not supported out of the box. How can I configure spring boot/websphere liberty to achieve this?

like image 482
Arun Abraham Avatar asked Mar 21 '16 13:03

Arun Abraham


2 Answers

Using the Liberty app accelerator you can download a zip containing a Maven buildable 'Spring Boot with Spring MVC' app as your starting point. Just run mvn install and you'll get the app running at http://localhost:9080/myLibertyApp/

like image 199
Jeremy Hughes Avatar answered Oct 24 '22 04:10

Jeremy Hughes


Actually, you can now create runnable jar files with WebSphere Liberty. You need v8.5.5.9 or higher. Create a runnable jar this way:

server package {server name} --archive={jar name}.jar --include=minify,runnable 

Resultant jar can be run as you'd expect:

java -jar {jar name}.jar 
like image 28
Chris Vignola Avatar answered Oct 24 '22 02:10

Chris Vignola