spring-boot-starter-jetty
时间: 2023-04-23 12:05:07 浏览: 171
spring-boot-starter-jetty是一个Spring Boot的starter,它提供了Jetty服务器的支持。Jetty是一个轻量级的Web服务器和Servlet容器,它具有快速启动、低内存占用和高性能等优点。使用spring-boot-starter-jetty可以方便地将Jetty集成到Spring Boot应用中,从而快速构建高性能的Web应用程序。
相关问题
spring-boot-starter-jetty版本
Spring Boot Starter Jetty 的版本有很多,具体要看你使用的 Spring Boot 版本。以下是一些常见的版本对应关系:
- Spring Boot 2.4.x 对应的 Jetty 版本是 9.4.31.v20200723。
- Spring Boot 2.3.x 对应的 Jetty 版本是 9.4.28.v20200408。
- Spring Boot 2.2.x 对应的 Jetty 版本是 9.4.20.v20190813。
- Spring Boot 2.1.x 对应的 Jetty 版本是 9.4.12.v20180830。
请注意,这些版本仅供参考,实际使用时仍需根据你的具体需求和 Spring Boot 版本选择适合的 Jetty 版本。你可以通过 Maven 或 Gradle 等构建工具来指定具体的版本。
19、(2.5分)Spring Boot 中集成 Freemarker 需要引入哪个依赖 A、spring-boot-starter-thymeleaf B、 spring-boot-starter-jetty C、 spring-boot-starter-freemarker D、spring-boot-starter-tomcat
C、`spring-boot-starter-freemarker`。在Spring Boot中集成Freemarker需要引入`spring-boot-starter-freemarker`依赖,例如:
```xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
```
这个依赖会自动引入Freemarker的核心依赖`freemarker`,以及Spring Boot提供的Freemarker支持依赖`spring-boot-starter-template`。其他选项中,`spring-boot-starter-thymeleaf`是用于集成Thymeleaf模板引擎的依赖;`spring-boot-starter-jetty`和`spring-boot-starter-tomcat`是用于集成Web容器的依赖,与集成Freemarker无关。