Commit cb0c6843 authored by izeye's avatar izeye Committed by Andy Wilkinson

Remove default paths in HAL and Links endpoints as value varies

The default values of fields in @ConfigurationProperties classes are,
where possible, included in the configuration metadata. The default
values for the HAL and Links endpoints vary depending on other
configuration settings. As a result, including a default in the
metadata is misleading.

This commit removes the default assignment of "" to the path fields so
that no default value will be included in the metadata.

Closes gh-3567
parent ea85e0d0
......@@ -38,7 +38,7 @@ public class HalBrowserEndpoint extends WebMvcConfigurerAdapter implements MvcEn
private static final String HAL_BROWSER_LOCATION = "classpath:/META-INF/resources/webjars/hal-browser/"
+ HAL_BROWSER_VERSION + "/";
private String path = "";
private String path;
private ManagementServerProperties management;
......
......@@ -32,7 +32,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
@ConfigurationProperties("endpoints.links")
public class LinksMvcEndpoint implements MvcEndpoint {
private String path = "";
private String path;
private boolean sensitive = false;
public LinksMvcEndpoint(String defaultPath) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment