From 68fe8a58b8e1557569c2c31d7fd761aa48597915 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 21 Jul 2016 20:50:33 +0900 Subject: [PATCH] Align message with regex for AbstractMvcEndpoint.path Closes gh-6437 --- .../boot/actuate/endpoint/mvc/AbstractMvcEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/AbstractMvcEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/AbstractMvcEndpoint.java index 26ee8c2b7f..bd1abcd6ee 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/AbstractMvcEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/AbstractMvcEndpoint.java @@ -42,7 +42,7 @@ public abstract class AbstractMvcEndpoint extends WebMvcConfigurerAdapter * Endpoint URL path. */ @NotNull - @Pattern(regexp = "/.*|^$", message = "Path must start with /") + @Pattern(regexp = "/.*|^$", message = "Path must start with / or be empty") private String path; /**