题目
Spring Boot中,用于开启Web应用支持的依赖是?A. spring-boot-starter-webB. spring-boot-starter-data-jpaC. spring-boot-starter-testD. spring-boot-starter-thymeleaf
Spring Boot中,用于开启Web应用支持的依赖是?
A. spring-boot-starter-web
B. spring-boot-starter-data-jpa
C. spring-boot-starter-test
D. spring-boot-starter-thymeleaf
题目解答
答案
A. spring-boot-starter-web
解析
Spring Boot 提供了多种 starter 依赖,用于简化项目配置。其中,`spring-boot-starter-web` 是用于开启 Web 应用支持的依赖,它包含了 Spring MVC 和 Tomcat 嵌入式容器,可以快速搭建 Web 应用。