Hi All,
Please clarify my below two questions
Questions1.
I have one query regrading
servlet annotations that is how web container will know what are the servlets are deployed in one war file.
With out Annotations: If we configure the servlets in web.xml file then the web server will check the specific url mapping in web.xml(deployment descriptor) file.
With Annotations:: if we used the annotations to define servlet
java classes. How the server will map the servlets when request come from the browser.
Will the server check each servlet .class file for annotation url mapping.
How the internal mechanism will work in the server.
Question2.
How the annotation mechanism will work in case of spring controller? how it will handle by dispatcher servlet? will it read all the mappings and maintain any metadata map?
Thanks & Regards,
Venkat