Quantcast
Channel: JetBrains Developer Community : All Content - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5481

Create Servlets without present web.xml

$
0
0

Hi all,

I created a java web project for a JEE6 projekt, so it is not necessary to have a web.xml descriptor as long as i annotate my servlet.

I tried to create a servlet in IDEA by using the menu New Class->Servlet. I gave the name and package, said OK but nothing happened.

I added a web.xml again and it worked.

Is there a way to create a Servlet without web.xml and maybe even with a @WebServlet Annotation holding the urls i specified in a "Create Servlet Dialog/Wizard" ?

My IDEA is 12.1

 

Greetings

Volker


Viewing all articles
Browse latest Browse all 5481

Trending Articles