When I used the 2020.3 Enterprise Edition to create a module and wanted to build a web application project, I found that there was no such option:
According to the online solution, first create a normal Module, then right-click to add framework, and found that there is no web application either.
Solution :
- Select Help-Edit Custom Properties in the toolbar
The first click may create a new file, add this code
# custom IntelliJ IDEA properties
javaee.legacy.project.wizard=true
Save and restart idea.
Then right-click the module -add framework created before, that is, there is a web application. The directory is as follows:
PS: If you create a new module in the later stage, you find that Web application is selected by default at the beginning of the construction, and there is no web application in the add framework later, but the built project modules are as follows: It is found that such a directory is inconvenient to use, especially when introducing other packages (the specific reason is not yet clear)
. If you want the previous directory, you must select Library when building, and then right-click to add
PPS: If the module cannot create a new java class, select Modules on the right side of File-Project Structure, and select Sources in Mark as.