求助:使用Springboot Admin监控程序一直注册不成功

L.L 2020-10-13 08:04:00
使用 Spring Boot Admin 监控 Spring Boot 程序一直注册不成功
一直警告:
20:03:23.747 [registrationTask1] WARN d.c.b.a.c.r.ApplicationRegistrator - [register,115] - Failed to register application as Application(name=spring-boot-application, managementUrl=http://localhost:80/actuator, healthUrl=http://localhost:80/actuator/health, serviceUrl=http://localhost:80) at spring-boot-admin ([http://localhost:8000/instances]): 401 null. Further attempts are logged on DEBUG level

网上的各种办法都试过了,还是没有用,求大佬解决
...全文
4025 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
stronger0724 2022-03-02
  • 打赏
  • 举报
回复
try_1250 2020-11-06
  • 打赏
  • 举报
回复
可以参照下github上spring-boot-admin-server-with-security以及demo中spring-boot-admin-client-with-security这两个对应的案例来进行配置,案例中server端需要重写一个configure方法,具体见https://github.com/anandvarkeyphilips/spring-boot-admin/tree/master/spring-boot-admin-samples。还有案例中重写的configure方法最后.ignoringAntMatchers("/instances", "/actuator/**"); 改为 .ignoringAntMatchers(adminContextPath + "/instances", adminContextPath + "/actuator/**"); 这个提到的一个issue,详见https://github.com/codecentric/spring-boot-admin/issues/894

51,396

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧