Nowadays I have been practising Java EE. There are may annotations which simplify configuration of servlet container. Such as:
- @WebServlet
- @WebInitParam
- @ServletSecurity
- etc.
You can do the same thing in deployment descriptor: Web.xml
Personally, I prefer annotations.
My questions are:
- can I use annotations for any possible use-case of the Web.xml?
- Any existing limitations, except that Java EE specific version needs to support annotations?
Best regards