September 2022 ~ SDK eMart

How to create Executable JAR of an Spring boot Application - Spring boot

  

   How to create Executable JAR of an Spring boot Application - Spring boot





Here is simple step:

NOTE: Red color ---> command


1) First open git bash or cmd terminal where is your mvnw file in your Spring Boot Project 




2) Run mvnw package   and wait some time 







3) Now go to target folder by  cd target/







4) After this check your jar file is working or not by like: java -jar polls-0.0.1-SNAPSHOT.jar






So, This was the step to make executable JAR file of your spring boot project and Run this file anywhere.

Happy Learning !!