1. Window project configuration: Right-click on the project->open Module settings or shortcut key Shift+ctrl+alt+s
2: Check if there is a web in modules, if no web is added
Web resouce direcytory Select Webroot Directory
Souce Roots tick off and OK, if there are other frameworks used in the project, such as spring, Hibernate and so on, remember to add the corresponding module.
3: Check whether facets inside already exists modules inside add content, if present, that OK, start set export war process
4. First look at the configuration after the successful appearance,
<1>: Select Web application:exploded, select from Modules, then select your project name, then change the name of the war name
<2> Next Select Web Application Archive Select for Xxxx:war exploded
,》
<3> configuration is successful, then choose Build---build artifacts in the menu, export it, SAO years!
Intellij idea non-MAVEN project Export War package