IDEA 普通project生成war包:
主菜单File -> Project Structure -> Artifacts -> + -> Web Application: Archive ->Empty/For ... ->
右下角Fix -> Add 'lib' to the artifact -> Apply -> Ok ->
主菜单Build -> Build Artifacts -> All Artifacrs -> Build
在项目文件夹下有个out文件夹 -> artifacts -> ... -> xxx.war