Saturday, May 26, 2018

How do I run spring boot artifact (jar/war/ear)?

Problem statement: How do I run an artifact using cmd?

  • running an artifact as a package/zip application:

step-1: open cmd
step-2: go to the path where artifact is present in your machine
step-3: fire the following command
            $ java - jar myapp-1.0.0-SNAPSHOT
step-4: enter
step-5: now type the url to access through your browser

  • Using maven plugin:

step-1: open cmd
step-2: go to the path where artifact is present in your machine
step-3: fire the following command
            $ mvn spring-boot:run
step-4: enter
step-5: now type the url to access through your browser

No comments:

Post a Comment

How to run standalone mock server on local laptop

 Please download the standalone wiremock server from Direct download section at the bottom of the page.  Download and installation Feel fre...