在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Java  HTML/ spring boot的actuator端點(diǎn)不能訪問

spring boot的actuator端點(diǎn)不能訪問

學(xué)習(xí)springboot的時(shí)候,在pom.xml里面加上:

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

之后重啟項(xiàng)目,除了/actuator/health和/actuator/info之外其他的基本不能訪問,求解為什么?
圖片描述

圖片描述

圖片描述

圖片描述

回答
編輯回答
喵小咪

已解決,應(yīng)該是項(xiàng)目中存在spring security后從除了health和info都不被允許訪問了,看了官方文檔之后在application.properties中加入:

management.endpoints.web.exposure.include=*

就可以了。
以下是官方文檔的說明:
圖片描述

圖片描述

2017年4月16日 18:17
編輯回答
壞脾滊
直接http://localhost:端口/beans試試
2017年8月8日 09:22