Skip to content

Tag: spring

How to join several validation annotations

I have following annotation to validate password: But spring validation does not recognize this rules. I used this annotation as: How can I get it without defining ConstraintValidator instance? Answer If you want to use ConstraintValidator, you can do it like this: create Password annotation : then create the…

Spring Rest Template Injects Value into Parameter with %

Can someone please explain to me what is happening in the following code? If I run: Spring tells me that the URL used is https://example.com/../username/path where username = user%25123 even though I set the username = user%123. This is looking to me to be not a Spring issue, rather a URL encoding issue, but …

noHandlerFound in Spring for CSS

I am learning Spring MVC and I try to get some experience. I wrote an app and deployed it to Tomcat serve. At run time, the browser gets a 404 code for the CSS and Tomcat “WARNING [http-nio-8080-…