[Latest version] Idea creates a project without web application, and right-click add Framework Support also does not

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:
insert image description hereAccording to the online solution, first create a normal Module, then right-click to add framework, and found that there is no web application either.
insert image description here
Solution :

  1. Select Help-Edit Custom Properties in the toolbar
    2. [Insert picture description here](https://img-blog.csdnimg.cn/20210408203225399.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl8 0Mzg0NjU2Mg==,size_16,color_FFFFFF,t_70)[Insert picture description here](https://img-blog.csdnimg.cn/20210408203203594.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6 Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80Mzg0NjU2Mg==,size_16,color_FFFFFF,t_70)

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:
insert image description here
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)
insert image description here
. If you want the previous directory, you must select Library when building, and then right-click to add
insert image description herePPS: 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.
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43846562/article/details/115530628