您当前的位置: 首页 >  spring

qq_34412985

暂无认证

  • 2浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

springboot2.X引入actuator依赖无法查看endpoint

qq_34412985 发布时间:2021-03-29 13:35:36 ,浏览量:2

    springboot1.X中引入actuator依赖后我们就可以通过对应的endpoint查看与应用相关的信息,springboot2.X以后需进行如下配置才可访问:

management:   endpoints:     web:       base-path: /actuator       exposure:         include: "*"

在springboot2.x的application.properties文件中单独暴露management.endpoints.web.base-path=/actuator

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0419s