Inspection info: Checks if all servlets have mappings
启动tomcat的时候 报404,找配置的时候发现图片处这两处标红
并且报Inspection info: Checks if all servlets have mappings
这个错误
类似于下面这个
Servlet should have a mapping less… (Ctrl+F1)
Inspection info: Checks if all servlets have mappings
解决方案
点击file->project structure->Modules->web,在Deployment Descriptors视窗下点击右边的加号选择web.xml,找到web.xml的位置即可,再点击apply->ok。
这样就好了
哦对了 有时候webxml 的路径也不对 得需要自己手动配置一下
D:\workspace_idea\23_Spring\day07-spring-mvc2\demo8-fileupload\src\main\webapp\WEB-INF\web.xm