我在我的Spring Boot应用程序中包含了Spring Actuator,但健康端点不存在/返回404.我可以获取许多其他执行器端点并查看它们在Tomcat日志中列出,即
<?php echo $__env->make('inc.secondary.navbar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="container">
<div class="row">
<div class="col-md-12">
<br/><br/><br/>
<b><h3><?php echo $SecondaryPage->title; ?></b></h3>
<?php echo $SecondaryPage->body; ?>
</div>
</div>
</div>
<?php echo $__env->make('inc.secondary.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
以下是application.properties spring.messages.encoding = UTF-8
EndpointHandlerMapping : Mapped "{[/autoconfig
EndpointHandlerMapping : Mapped "{[/beans
EndpointHandlerMapping : Mapped "{[/configprops
EndpointHandlerMapping : Mapped "{[/dump
EndpointHandlerMapping : Mapped "{[/env
EndpointHandlerMapping : Mapped "{[/env/{name:.*}]
EndpointHandlerMapping : Mapped "{[/info
EndpointHandlerMapping : Mapped "{[/mappings
EndpointHandlerMapping : Mapped "{[/metrics
EndpointHandlerMapping : Mapped "{[/metrics//{name:.*}]
EndpointHandlerMapping : Mapped "{[/trace
有人会有什么想法会阻止创建/可用的Actuator健康端点吗?
答案 0 :(得分:0)
在application.properties
中尝试配置endpoints.health.enabled=true
答案 1 :(得分:0)
您可以通过此属性启用其他端点:
-S