- Mastering Spring Boot 2.0
- Dinesh Rajput
- 294字
- 2021-06-25 21:29:21
The Actuator with Spring Boot 2.X
The new version of Spring Boot Actuator—2.x Actuator, has been introduced with a simplified model, extended capabilities, and better incorporated defaults. In this version, the security model is integrated with the application for simplification. Some more HTTP requests and responses, and Java APIs, have also been added. The newest version also supports CRUD against the model of read-write it had before.
Actuator 2.x defines the extensible model, which is also pluggable and does not depend on MVC. Hence, you can utilize MVC and Web Flux. In the new version, endpoints also come disabled by default. Should you want to turn them all on, you can use the following:
management.endpoints.web.expose = *.
Or if you do not want to enable all the endpoints, you can simply list the ones you want to enable and let others be. All Actuator endpoints are now also set under /actuator path by default.
Spring Boot 2.x Actuator has also introduced some more built-in endpoints:
- /conditions: This is simply auto-config renamed
- /Prometheus: This is also the same as metrics, but it supports a Prometheus server
- Scheduledtasks: This endpoint provides details of every scheduled task in the application
- /sessions: This is a list of HTTP sessions using Spring Sessions
- /threaddump: This endpoint dumps the thread information
Spring Boot 2.x Actuator allows you to manipulate the endpoints in similar ways to previous versions. You can customize them; however, there have been a few changes introduced to the method of customization. This is mostly because 2.x Actuator supports CRUD operations instead of just read and write. And you can also add new endpoints to existing ones, with your own configurations and implementations.
Spring Boot Actuator allows you to manipulate and manage your application very easily.
- Power BI零售數(shù)據(jù)分析實(shí)戰(zhàn)
- Office 365 管理實(shí)踐
- 天天用的Office一百招
- 我的世界:Minecraft模組開(kāi)發(fā)指南
- 吸引力!創(chuàng)意PPT的設(shè)計(jì)與展現(xiàn)實(shí)用法則
- MATLAB R2020a完全自學(xué)一本通
- Excel+PPT+Word+PS+短視頻剪輯+PDF+思維導(dǎo)圖+居家辦公+辦公設(shè)備9合1
- PPT制作應(yīng)用大全2019
- Excel 2016高效辦公實(shí)戰(zhàn)應(yīng)用與技巧大全666招
- 隨身查:一小時(shí)搞定你想要的PPT
- Power BI企業(yè)級(jí)分析與應(yīng)用
- 掌中寶:Office辦公高手應(yīng)用技巧
- 做好PPT就靠這幾招:圖解力 吸引力 說(shuō)服力(全彩圖解版)
- 演說(shuō)之法:PPT高手思維秘籍
- 電腦高效辦公