← Quiz: Spring Boot Basics: all 10 questions
Quiz: Spring Boot Basics · Question 5 of 10
Why does a Spring Boot jar not need a separately installed Tomcat?
Why does a Spring Boot jar not need a separately installed Tomcat?
- A.It uses the JDK's built-in web server
- B.The server is embedded inside the application
- C.Spring Boot apps can't serve HTTP
- D.Maven starts Tomcat during packaging
Answer & explanation
Correct answer: The server is embedded inside the application
java -jar starts your app together with its embedded server.
Can you get the rest right without peeking?
Take the timed Quiz: Spring Boot Basics quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →