JSR303 parameter check regular expression inexplicable errors

 

@Pattern (regexp = "^ Here is a string. *", Message = "does not conform to the format") 

in the case of this annotation meet the canonical (by regular expression https://regexr.com/ checksum) , the display does not conform to the format has been

finally discovered, this line deleted, re-write (notes following a string of paste), will be successful, is really a strange bug







Guess you like

Origin www.cnblogs.com/kinome/p/12110465.html