不使用web骨架的方式
创建maven项目--》在pom.xml里面设置packaging为war的方式---》点击file--》project structure--》facets在此页面设置
使用骨架的方式:
选择然后选择webapp结尾的骨架