← Quiz: Spring Boot Basics: all 10 questions
Quiz: Spring Boot Basics · Question 6 of 10
Your app fails to start with "Port 8081 was already in use". What is the fix?
Your app fails to start with "Port 8081 was already in use". What is the fix?
- A.Reinstall Java
- B.Stop the other app on that port or change server.port
- C.Delete pom.xml
- D.Use ddl-auto=create-drop
Answer & explanation
Correct answer: Stop the other app on that port or change server.port
Two apps cannot listen on the same port at the same time.
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 →