The content is roughly as the title.
In the implementation of ʻorg.hibernate.validator.internal.constraintvalidators.hv.URLValidator, validation will pass even if you just enter "
http: ". If the URL is limited to the URL, such as "Only protocols such as
http/
httpsshould be entered, at least the domain should be entered", use the
@Pattern` annotation to make it regular You should check it with the expression.
[Maven Repository: org \ .hibernate \ .validator »hibernate \ -validator» 6 \ .1 \ .2 \ .Final](https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator/6.1 I verified it with 2.Final).
Recommended Posts