Spring Boot Actuator Server Config

Enables configuration of Spring Boot management server when running on a separate port.

Лицензия

Лицензия

Категории

Категории

Spring Boot Контейнер Микросервисы config Библиотеки уровня приложения Configuration
Группа

Группа

com.github.timpeeters
Идентификатор

Идентификатор

spring-boot-actuator-server-config
Последняя версия

Последняя версия

2.1.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Spring Boot Actuator Server Config
Enables configuration of Spring Boot management server when running on a separate port.
Ссылка на сайт

Ссылка на сайт

https://github.com/timpeeters/spring-boot-actuator-server-config
Система контроля версий

Система контроля версий

https://github.com/timpeeters/spring-boot-actuator-server-config

Скачать spring-boot-actuator-server-config

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.timpeeters/spring-boot-actuator-server-config/ -->
<dependency>
    <groupId>com.github.timpeeters</groupId>
    <artifactId>spring-boot-actuator-server-config</artifactId>
    <version>2.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.timpeeters/spring-boot-actuator-server-config/
implementation 'com.github.timpeeters:spring-boot-actuator-server-config:2.1.1'
// https://jarcasting.com/artifacts/com.github.timpeeters/spring-boot-actuator-server-config/
implementation ("com.github.timpeeters:spring-boot-actuator-server-config:2.1.1")
'com.github.timpeeters:spring-boot-actuator-server-config:jar:2.1.1'
<dependency org="com.github.timpeeters" name="spring-boot-actuator-server-config" rev="2.1.1">
  <artifact name="spring-boot-actuator-server-config" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.timpeeters', module='spring-boot-actuator-server-config', version='2.1.1')
)
libraryDependencies += "com.github.timpeeters" % "spring-boot-actuator-server-config" % "2.1.1"
[com.github.timpeeters/spring-boot-actuator-server-config "2.1.1"]

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
org.springframework : spring-beans jar
org.springframework : spring-context jar
org.springframework : spring-core jar
org.springframework.boot : spring-boot jar
org.springframework.boot : spring-boot-actuator-autoconfigure jar
org.springframework.boot : spring-boot-autoconfigure jar
org.springframework.boot : spring-boot-configuration-processor Необязательный jar

test (9)

Идентификатор библиотеки Тип Версия
junit : junit jar
org.apache.tomcat.embed : tomcat-embed-core jar
org.assertj : assertj-core jar 3.11.1
org.springframework : spring-test jar
org.springframework.boot : spring-boot-starter-actuator jar
org.springframework.boot : spring-boot-starter-logging jar
org.springframework.boot : spring-boot-starter-test jar
org.springframework.boot : spring-boot-starter-web jar
org.springframework.boot : spring-boot-test jar

Модули Проекта

Данный проект не имеет модулей.

Spring Boot Actuator Server Config

Known Vulnerabilities Dependabot Status Maven Central

This project allows to configure the Spring Boot management connector separately from the default connector.

Versions

Multiple branches are maintained to support multiple Spring Boot versions. The following tables show the relation between the Spring Boot version and the Spring Boot Actuator Server Config version.

Spring Boot Spring Boot Actuator Server Config Branch
1.5.x 1.0.x 1.0.x
2.0.x 2.0.x 2.0.x
2.1.x 2.1.x master

Installation

  1. Add the following Maven dependency:
<dependency>
    <groupId>com.github.timpeeters</groupId>
    <artifactId>spring-boot-actuator-server-config</artifactId>
    <version>X.X.X</version>
</dependency>

Thread pool example

Spring Boot allows to configure the web container to listen on multiple ports. Using the server.port property, we can configure the port for the public traffic. Using the management.port, we can configure the port for the management (Actuator) traffic. It might make sense to use a big thread pool for the public traffic while using a smaller thread pool for management traffic. By default Spring Boot will apply all the settings of the default port to the management port as well. Using spring-boot-actuator-server-config, we can configure the management port independently.

Below we leverage the following properties to configure the management thread pool: management.server.tomcat.max-threads and management.server.tomcat.min-spare-threads.

management.server.port=8081
management.server.tomcat.max-threads=5
management.server.tomcat.min-spare-threads=${management.tomcat.max-threads}

server.port=8080
server.tomcat.max-threads=200
server.tomcat.min-spare-threads=${server.tomcat.max-threads}

References

Версии библиотеки

Версия
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0