mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 23:39:34 +00:00
Align message with regex for AbstractMvcEndpoint.path
Closes gh-6437
This commit is contained in:
committed by
Andy Wilkinson
parent
a1797879e6
commit
68fe8a58b8
+1
-1
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user