在idea中为项目添加web目录

新建的maven工程中没有webapp目录

1.选择project Structure

2.在项目中 ADD –>web

 

 3.这样就添加完成拉

 

 

 这样就OK拉