I'm facing an issue that i'm using UrlValidator in my code.
UrlValidator urlValidator = UrlValidator.getInstance();
if(urlValidator.isValid(url)) {
throw new IllegalArgumentException( url + "not valid");
}
where url i'm passing is
[1]: http://localhost:8080/myapp/Education.html
.I'm getting IllegalArgumentException n if i'm passing url i.e
[2]: https://www.google.co.in/
its working fine.How to make this code working for localhost:8080
new UrlValidator(UrlValidator.ALLOW_LOCAL_URLS)
– Wheelman