|
|
@ -128,8 +128,7 @@ public class EndpointWebMvcHypermediaManagementContextConfiguration {
|
|
|
|
ManagementServerProperties management, DocsMvcEndpoint endpoint) {
|
|
|
|
ManagementServerProperties management, DocsMvcEndpoint endpoint) {
|
|
|
|
String path = management.getContextPath() + endpoint.getPath()
|
|
|
|
String path = management.getContextPath() + endpoint.getPath()
|
|
|
|
+ "/#spring_boot_actuator__{rel}";
|
|
|
|
+ "/#spring_boot_actuator__{rel}";
|
|
|
|
if (server.getPort() == management.getPort() && management.getPort() != null
|
|
|
|
if (server.getPort().equals(management.getPort()) && management.getPort() != 0) {
|
|
|
|
&& management.getPort() != 0) {
|
|
|
|
|
|
|
|
path = server.getPath(path);
|
|
|
|
path = server.getPath(path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return new DefaultCurieProvider("boot", new UriTemplate(path));
|
|
|
|
return new DefaultCurieProvider("boot", new UriTemplate(path));
|
|
|
|