Spring Boot || Tutorial 9 || How to export JAR package of a spring boot project? - NESTED CODE || TECH FLOAT

Breaking

Post Top Ad

Post Top Ad

Thursday, 21 June 2018

Spring Boot || Tutorial 9 || How to export JAR package of a spring boot project?

Today we will export the previous project to a executable jar format. Of course we will be using Maven to build the jar and export to default project target location.  Also later we will run the entire project from executable jar. Please follow the below steps-

Step-1: First right click on the project and click on run as -> Run Configurations. You should be able to see the below screen-

write Goals as "package -DskipTests" as highlighted in below image.


Apply and run the project.

Step -2:

Once it is build successfully - you should be able to get the below screen with message "Build successful"


Step-3: Go to the highlighted path (it will differ for your system) and execute the "executable jar" - double click on that - as shown in below image


Step-4: We have started our project in last step. Now go to the browser to test it. Type the URL localhost:8080/listofemp - you should be able to see the below screen- it proves application has been started successfully.


No comments:

Post a Comment

Post Bottom Ad