java – How to deploy a web application?

Question:

I wrote my first web application (wrote on Spring Boot). I run on localhost – everything works as it should. Now I want to deploy it at my work, so that my laptop acts as a server and all employees of my organization can use this application from their workplace through a browser. Please advise where to start, perhaps links, lessons, documentation. I would be grateful for any information.

Answer:

The server that comes with Spring Boot out of the box is fine for your needs.

All that is needed:

  1. Compile the code into one big jar ( mvn clean install if you are using maven)
  2. Run jar file: java -jar ...youfilename.jar

More details (as well as other options) can be found here: https://spring.io/blog/2014/03/07/deploying-spring-boot-applications

Scroll to Top