Merge pull request #6437 from Johnny Lim

* gh-6437:
  Align message with regex for AbstractMvcEndpoint.path
This commit is contained in:
Andy Wilkinson
2016-07-21 17:04:45 +01:00

View File

@@ -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;
/**