Spring Actuator

setup

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>

enable web client

all endpoints are exposed to JMX and WEB clents

By default, all endpoints except for shutdown are enabled.

  • enable all endpoings

  • enable all endpoints accessed by web

    management:
    endpoints:
    enabled-by-default: true
    web:
      exposure:
        include: "*"
    

https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html

WebApplicationType


spring:
  main:
    web-application-type: reactive
  • NONE

The application should not run as a web application and should not start an embedded web server.

  • REACTIVE

The application should run as a reactive web application and should start an embedded reactive web server.

  • SERVLET

The application should run as a servlet-based web application and should start an embedded servlet web server.

Related