mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Fix use of == in EndpointWebMvcHypermediaManagementContextConfiguration
Closes gh-4502 Closes gh-4536
This commit is contained in:
parent
46edee2e45
commit
d9f15636d0
@ -128,8 +128,7 @@ public class EndpointWebMvcHypermediaManagementContextConfiguration {
|
||||
ManagementServerProperties management, DocsMvcEndpoint endpoint) {
|
||||
String path = management.getContextPath() + endpoint.getPath()
|
||||
+ "/#spring_boot_actuator__{rel}";
|
||||
if (server.getPort() == management.getPort() && management.getPort() != null
|
||||
&& management.getPort() != 0) {
|
||||
if (server.getPort().equals(management.getPort()) && management.getPort() != 0) {
|
||||
path = server.getPath(path);
|
||||
}
|
||||
return new DefaultCurieProvider("boot", new UriTemplate(path));
|
||||
|
Loading…
Reference in New Issue
Block a user