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!)