如何解决是否可以将 HTML 链接添加到 Spring Boot Actuator 信息端点?
我像这样修改了我的 Spring Boot Actuator Info Endpoint。
{
"app" : {
"name" : "customer-management-ws","description" : "Customer Management Web Service","version" : "1.0.0","status" : "Up and Running on Port: 49899","swagger" : "http://localhost:49899/api/swagger-ui.html"
}
注意键“swagger”和值 URL。问题是,我总是需要在浏览器中复制和粘贴 url。是否可以在那里制作可点击的 html 链接?
我已经尝试过的是,在我的 application.properties 中写入以下内容。
info.app.swagger="<a href=http://localhost:${local.server.port}/api/swagger-ui.html">SWAGGER</a>"
结果是
{
"app" : {
"name" : "customer-management-ws","swagger" : "<a href=http://localhost:${local.server.port}/api/swagger-ui.html">SWAGGER</a>"
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。