Bird
0
0

Which dependency is essential to add for enabling SpringDoc OpenAPI UI in a Spring Boot Web MVC project?

easy📝 Conceptual Q2 of 15
Spring Boot - API Documentation
Which dependency is essential to add for enabling SpringDoc OpenAPI UI in a Spring Boot Web MVC project?
Aspring-boot-starter-data-jpa
Bspring-boot-starter-security
Cspringdoc-openapi-starter-webmvc-ui
Dspring-boot-starter-thymeleaf
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct SpringDoc UI dependency

    The dependency springdoc-openapi-starter-webmvc-ui provides the Swagger UI integration for Spring MVC projects.
  2. Step 2: Recognize unrelated dependencies

    Other options relate to database, security, or template engines, which do not enable OpenAPI UI.
  3. Final Answer:

    springdoc-openapi-starter-webmvc-ui -> Option C
  4. Quick Check:

    UI dependency = springdoc-openapi-starter-webmvc-ui [OK]
Quick Trick: Use springdoc-openapi-starter-webmvc-ui for UI [OK]
Common Mistakes:
  • Adding unrelated dependencies like JPA or security
  • Forgetting to add the UI starter dependency
  • Confusing Thymeleaf with OpenAPI UI

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes