The default HTTP port used by the embedded Apache Tomcat server in a Spring Boot application is 8080. When a Spring Boot application starts without any custom server configuration, it automatically listens for incoming requests on port 8080.
How Does It Work?
Application Starts
|
Embedded Tomcat Starts
|
Binds to Port 8080
|
Accepts HTTP Requests
When the application launches, Tomcat automatically starts and listens on:
http://localhost:8080
Changing the Default Port
application.properties
server.port=9090http://localhost:9090
Using YAML Configuration
port: 9090
Random Port Configuration
For testing purposes, Spring Boot can start on a random available port.
server.port=0Spring Boot automatically selects an unused port.
http://localhost:8080/employees
When the application starts, Tomcat listens on port 8080 and handles all incoming requests to the API endpoints.
Common Default Ports
Spring Boot uses 8080 because ports 80 and 443 typically require elevated privileges and are often reserved for production environments.
A concise interview answer is
The default port of the embedded Tomcat server in Spring Boot is 8080. If no custom configuration is provided, the application listens for HTTP requests on port 8080. The port can be changed using the server.port property in application.properties or application.yml.
Last updated: 16 July 2026
Previous question: What happens if a starter dependency includes conflicting versions of libraries with other dependencies in the project?
Next question: Can we disable the default web server in a Spring Boot application?