Recall & Review
beginner
What is an embedded server in Spring Boot?
An embedded server is a web server (like Tomcat or Jetty) that runs inside the Spring Boot application itself, so you don't need to install or configure a separate server.
Click to reveal answer
beginner
Why does Spring Boot use embedded servers by default?
Spring Boot uses embedded servers to make it easy to run applications quickly without extra setup. It packages the server with the app, so you just run one file.
Click to reveal answer
beginner
Name two common embedded servers used in Spring Boot.
Tomcat and Jetty are two common embedded servers used in Spring Boot applications.
Click to reveal answer
intermediate
How do you change the embedded server port in a Spring Boot application?
You can change the port by setting 'server.port' in the application.properties or application.yml file, for example: server.port=8081.
Click to reveal answer
intermediate
What is the benefit of using an embedded server for deployment?
Using an embedded server means you deploy a single runnable jar or war file. This simplifies deployment and avoids server compatibility issues.
Click to reveal answer
What does an embedded server in Spring Boot allow you to do?
✗ Incorrect
Embedded servers run inside the Spring Boot app, so no separate server installation is needed.
Which of these is NOT a common embedded server in Spring Boot?
✗ Incorrect
GlassFish is a full Java EE server, not commonly used as an embedded server in Spring Boot.
How can you change the default port of the embedded server?
✗ Incorrect
Changing server.port in application.properties or application.yml sets the embedded server port.
What is a key advantage of using an embedded server for deployment?
✗ Incorrect
Embedded servers allow packaging the server inside the app, simplifying deployment.
Which file typically contains the embedded server configuration in Spring Boot?
✗ Incorrect
application.properties or application.yml files hold configuration like server.port.
Explain what an embedded server is in Spring Boot and why it is useful.
Think about how Spring Boot packages the server with your app.
You got /4 concepts.
Describe how to change the port number of the embedded server in a Spring Boot app.
Look for configuration files that control server settings.
You got /3 concepts.