BS问题 spring boot admin 注册失败 405 Method Not Allowed:

spring boot client 配置文件 ,这个配置文件不知道从哪个大佬那里复制来的

spring:
  boot:
    admin:
      client:
        api-path: #出错的地方
        url: http://localhost:7000
management:
  endpoint:
    health:
      show-details: always
  endpoints:
    enabled-by-default: true
    web:
      base-path: /actuator
      exposure:
        include: '*'

 2023-06-13 10:30:42.135 [registrationTask1] WARN  d.c.b.a.client.registration.ApplicationRegistrator - Failed to register application as Application(name=aerial, managementUrl=http://DESKTOP-725BTEG:8071/aerial/actuator, healthUrl=http://DESKTOP-725BTEG:8071/aerial/actuator/health, serviceUrl=http://DESKTOP-725BTEG:8071/aerial) at spring-boot-admin ([http://localhost:7000/]): 405 Method Not Allowed: [{"timestamp":"2023-06-13T02:30:42.123+00:00","path":"/","status":405,"error":"Method Not Allowed","message":"","requestId":"3d835ba5-1176"}]. Further attempts are logged on DEBUG level 

我从一个正常能注册的服务,启动的时候追踪

 

 这里是默认的

@ConfigurationProperties(prefix = "spring.boot.admin.client")

private String apiPath = "instances";


看到配置参数,我明白了

马上看我的配置文件,就是和正常的服务不一样,增加了apiPath参数,还给了空(fuck!)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值