Using an embedded server in Spring Boot offers several benefits, such as: Simplified deployment: The application can be run as a standalone JAR or WAR file, without requiring an external application server. Consistent development and production environments: The same server and configurations can be used in both environments, reducing the risk of environment-specific issues. Faster startup and shutdown times: The embedded server starts and stops along with the application, making it faster and more efficient than an external application server. You can include a web server (such as Tomcat, Jetty, or Undertow) in the application itself. Below is an example of using the embedded Tomcat server in a Spring Boot application: Configure Embedded Server Properties in your application.properties or application.yml file. For example, to configure Tomcat with a custom port, you can add the following to application.properties: Plaintext # Configure Tomcat server port server.port=8080 Create a Spring Boot application with the main class with @SpringBootApplication annotation: Java import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class MySpringBootApplication { public static void main(String[] args) { SpringApplication.run(MySpringBootApplication.class, args); } } When you run the application, Spring Boot will use the embedded Tomcat server. You'll see output similar to the following indicating that Tomcat is starting: Plaintext Tomcat initialized with port(s): 8080 (http) Reference: Spring Boot Embedded Servers