How to customize the endpoint in SpringBoot2
May 12, 2023 am 08:40 AMSpringBoot2 new feature custom endpoint
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Only requires three annotations @endpoint
, @ReadOperation
, @Selector
Start the springboot project
Seeing the red mapped indicates success
Visit http://127.0.0.1:8080/actuator/customPoint /156
Result
1
management.endpoints.enabled-by-
default
: false
Copy after login
Modify access Project pathThe default access path is /actuator, which can be modified by modifying the following properties1 |
|
1 |
|
http://ip:port/actuator
http://ip:port/myActuator
/myActuator
The above is the detailed content of How to customize the endpoint in SpringBoot2. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How Springboot integrates Jasypt to implement configuration file encryption

How SpringBoot integrates Redisson to implement delay queue

How to use Redis to implement distributed locks in SpringBoot

How to solve the problem that springboot cannot access the file after reading it into a jar package

Comparison and difference analysis between SpringBoot and SpringMVC

How SpringBoot customizes Redis to implement cache serialization

How to get the value in application.yml in springboot

How to implement Springboot+Mybatis-plus without using SQL statements to add multiple tables
