- Mastering Spring Boot 2.0
- Dinesh Rajput
- 168字
- 2021-06-25 21:29:20
Changing the sensitivity of the Actuator's endpoints
By default, many of the Actuator's endpoints are sensitive. All default endpoints in Spring Boot Actuator are automatically sensitive. Hence the endpoints can be secured by using default properties for fault security. These include username, password, and role, within the properties file of your application. But you can also mark sensitive as false if the endpoint doesn't expose sensitive information, as follows:
endpoints._endpoint-id.sensitive = false
In the application.yml file, it would look like the following:
endpoints: _endpoint-id: sensitive: false
You can also set it to true if all endpoints expose sensitive information.
For example, let's set the /health endpoint's sensitive value to false:
endpoints.health.sensitive=false
Or in application.yml file:
endpoints: health: sensitive: false
Now you can access the /health endpoint without any authentication security.
Spring Boot Actuators also allows you to create your own endpoint, with your own configurations and implementations. To do so, all you have to do is implement the endpoint interface and override its method.
- Excel 2010在會(huì)計(jì)與財(cái)務(wù)管理日常工作中的應(yīng)用
- WPS辦公應(yīng)用四合一:文檔處理+數(shù)據(jù)分析+文稿演示+移動(dòng)辦公
- Office 2013入門(mén)與提高
- Word/Excel 2003辦公應(yīng)用實(shí)戰(zhàn)從入門(mén)到精通
- 從零開(kāi)始學(xué)Arduino電子設(shè)計(jì):創(chuàng)意案例版
- Excel 2016數(shù)據(jù)透視表從入門(mén)到精通
- 微軟辦公軟件國(guó)際認(rèn)證(MOS)Office 2010大師級(jí)通關(guān)教程(第2版)
- Final Cut Pro X基礎(chǔ)培訓(xùn)教程
- Flash CS6核心應(yīng)用案例教程(全彩慕課版)
- Office2010從入門(mén)到精通(視頻講解+圖解+技巧)
- 電腦上網(wǎng)技巧現(xiàn)用現(xiàn)查
- INSTANT Prezi Starter
- 掌中寶:Word辦公應(yīng)用技巧
- Office2021完全自學(xué)教程
- 文檔之美:打造優(yōu)秀的Word文檔