直接进入主题:
1、选择项目右键Properties-->Project Facets,勾选如下图:
点击OK
2、如下图操作

3、打开org.eclipse.wst.common.component
<wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>改为
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
设置完成,启动吧!