Lazy, a picture with the following steps to get it done.
1, right-click the project, select Propertities after the selection of ① (obscured);
2, first do not ② tick off, Click Apply, and then in the ② place tick. At this point the ④ position will appear east, click the Blue Hyperlink. Fill in the path created by Web-inf. Maven Project fill in Src/main/webapp Remember to tick the option to automatically create Web. XML below and click OK.
Add: In step 2, the ④ location may not appear the result that should appear, blogger himself encountered is the version is not supported by the error prompt. At this point you will modify the version at the ③ location. The blogger just started with a version of 3.0, with an error and then changed to 2.5. It's normal ...
No Web-inf folder and Web. xml file after creating Maven project in "Little Tricks" Eclipse