spring-boot-starter-jetty

组件简介

将 Jetty 容器嵌入到 Spring Boot

使用说明

1、Spring Boot 项目添加 Maven 依赖
```xml
<!-- For Embed Jetty -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>

##### 2、集成 Prometheus 监控

项目中引入 micrometer-prometheus 依赖,可实现 `Jetty` 容器的指标采集

```xml
<dependency>
    <groupId>io.micrometer</groupId>
    <artifactId>micrometer-registry-prometheus</artifactId>
</dependency>

可采集到如下指标:

作者:Jeebiz  创建时间:2023-05-05 17:02
最后编辑:Jeebiz  更新时间:2024-10-04 23:39