I am using spring-security for basic login for my application and various levels of access..
In web.xml i have configured the filter as follows
My doubts are as follows-
1. In the above snippet is it necessary to define filter before filtermapping tag? I try reversing the order i was getting some exception filter not found etc..How web.xml is parsed?
2. In url-pattern what is the difference between /, /* and /**.
I tried /** but it was not working. /* is working perfectly.
posted 2 years ago
1. Yes. web.xml follows a schema that has to be followed while writing the file (check your web.xml to see xsd location).
2. Yes, /** is not a valid url pattern. /*, /*.do, /admin/* etc. are some valid patterns.