Tomcat idea to add a module to solve the dependence: no Servlet when Intelij IDEA create WEB project jar package to resolve: no Servlet when Intelij IDEA create WEB project jar package

Solve: Intelij IDEA WEB project when you create no Servlet jar package

When you create a project SpringMVC today when used HttpServletRequest, found that the project did not Servlet package, online search, this problem is because the web server project did not add due.

Server Configuration tomecat

 

After adding the selected tomcat, the project will depend on the default jar in the tomcat add

 

Guess you like

Origin www.cnblogs.com/zhaoyanhaoBlog/p/10958312.html