怎么在springboot admin的界面自带的接口的路径前添加前缀?如原来的接口是ip+port+applications拼接现在想换成统一加前缀monitor变成ip+port+monitorapplications该怎么实现?使用yaml配置格式
您可以在Spring Boot Admin Server的配置文件中添加以下内容:
server:
servlet:
context-path: /monitor
spring:
boot:
admin:
context-path: /monitor/admin
这会将Spring Boot Admin的接口路径修改为/monitor/admin,并将Servlet上下文路径设置为/monitor,因此您的完整路径将是http://ip:port/monitor/admin/applications。
原文地址: https://www.cveoy.top/t/topic/K9K 著作权归作者所有。请勿转载和采集!