IDEA creates a Java Enterprise project

That is, to create a dynamic web project on IDEA, the ULTIMATE version is required, and the community version is not suitable

When watching the tutorial, I found that the 2020.2 version I installed did not have the dynamic creation process in the tutorial. I went to the official document (2020.1) and found that version 2020.1 and previous versions can be created in the following ways

The specific steps are

1.Click Create New Project on the Welcome screen, or select File | New | Project. The New Project wizard opens.

2.In the left-hand pane, select Java Enterprise.

3.From the Project SDK list, select the JDK that you want to use in your project.

If the JDK is installed on your computer, but not defined in the IDE, select Add JDK and specify the path to the JDK home directory.

If you don't have the necessary JDK on your computer, select Download JDK.

4.Specify your application server. We'll use GlassFish Server.

If GlassFish is not defined in IntelliJ IDEA yet, click New to the right of the Application Server field and select Glassfish Server.

In the Glassfish Server dialog, specify the GlassFish Server installation directory.

5.Under Additional Libraries and Frameworks, select the Web Application checkbox.

The official website recommends using the GlassFIsh web server, which is not necessary. I use Tomcat myself, so I can ignore it

However , the content has changed when looking at the new official document (2020.2)

The specific steps are:

1.From the main menu, select File | New | Project.

2.In the New Project dialog, select Java Enterprise. For this tutorial, use Java 1.8 as the project SDKs and leave other settings by default: Maven as the build tool and JUnit as the test runner. Select Java as your project language and click Next.

3.In the Libraries and Frameworks list, select the Servlet framework under Specifications and click Next.

4.Enter a name for your project: JavaEEHelloWorld. Then click Finish.

More details are reflected in the official website

The index.jsp on the homepage can be manually added in the Project directory

The official documentation is really a good thing

 

Guess you like

Origin blog.csdn.net/baidu_36669549/article/details/109214036