urlPatterns in WebServlet annotation

Intellij does not seem to pick up the urlPatterns anntoation below. If I declare the mapping in the web.xml file it works fine however if I remove it I get a 404.

@WebServlet(name = "Servlet", urlPatterns = {"/TestServlet"})

Thanks,
Nabil

2 comments
Comment actions Permalink

Please let me know if this question is not clear so I can rephrase it. Thanks

0
Comment actions Permalink

How do you know IDEA does not pick up it? Do you see red code?

"Nabil Shuhaiber" <no_reply@jetbrains.com> сообщил(а) в новостях
следующее:18222769.176881328397545285.JavaMail.devnet@confluence.jetbrains.net...

Intellij does not seem to pick up the urlPatterns anntoation below. If I
declare the mapping in the web.xml file it works fine however if I remove
it I get a 404.

>

@WebServlet(name = "Servlet", urlPatterns = {"/TestServlet"})

>

Thanks,
Nabil

>

---
Original message URL: http://devnet.jetbrains.net/message/5450940#5450940


0

Please sign in to leave a comment.