Deploying your app - mumayank/Rest-Api-Documentation GitHub Wiki

Running your app from the command prompt

Open command prompt, go to your project location, and type

mvn install

mvn spring-boot:run


Create context path

In application.properties file, add:

server.servlet.context-path=/your-path-choice

Doing this will lead to your apis becoming from

http://localhost:8080/users

to

http://localhost:8080/your-path-choice/users


Run app as jar

maven install

Jar file would get generated in target folder. You can move it and run it using

java -jar <filename>

⚠️ **GitHub.com Fallback** ⚠️