I think we don't need to specify contextPath with empty value here as the org.springframework.boot.actuate.autoconfigure.ManagementServerProperties has the default value specified for contextPath.