Deploying the backend

If you are going to use your own server, the easiest way to deploy the Spring Boot application is to use an executable JAR file. An executable JAR file is generated, if you use Maven, in the command line by typing the mvn clean install command. That command creates the JAR file in the build folder. In this case, you don't have to install a separate application server because it is embedded in your JAR file. Then you just have to run the JAR file using the java command, java -jar your_appfile.jar. The embedded Tomcat version can be defined in the pom.xml file with the following lines:

<properties>  <tomcat.version>8.0.52</tomcat.version></properties>

If you are using a separate application server, you have to create a ...

Get Hands-On Full Stack Development with Spring Boot 2.0 and React now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.