From the course: Complete Guide to Spring MVC

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Running a server

Running a server

- Running a server. With the release of Spring 6 and the upcoming release of Spring 7, running a server in a Spring MVC application is simpler and more robust. It leverages Spring Boot for embedding servers and modern deployment practices. In Spring MVC, you can run your application on either an embedded server or a standalone server. Within our sample application at the beginning of this course, which method did we use? If you guessed embedded server, that's correct We ran directly from our deployment environment using Spring Boot's embedded server, which was Tomcat for us. And I've highlighted here an example of where you see the embedded Turbo Tomcat being called. And the second option, which we did not do, was a standalone server. So this is where you can package your application as a web application archive or WAR and deploy it into an external server like Apache, Tomcat, JBoss, or others. Spring Boot is now the defacto standard for Spring based application, and this makes the…

Contents