Spring Boot 版本爲:1.5.13.RELEASE
項目中導入spring-boot-starter-actuator後,actuator提供默認端點無返回數據或顯示錯誤頁面
無返回數據:
顯示錯誤頁面:
只需在application.properties中添加配置:
management.security.enabled=false
即可解決
Spring Boot 版本爲:1.5.13.RELEASE
項目中導入spring-boot-starter-actuator後,actuator提供默認端點無返回數據或顯示錯誤頁面
無返回數據:
顯示錯誤頁面:
只需在application.properties中添加配置:
management.security.enabled=false
即可解決
https://stackoverflow.com/questions/419163/what-does-if-name-main-do