Difference between Java Web project and Java project

I didn't think there was any difference between the two. Recently, I encountered such a problem in the project team, so I studied it in depth.

1. The following is my understanding and difference between Java Web projects and Java projects:

1. Java Web projects are based on Java EE classes; while Java projects are based on Java applications.

2. The Java  Web project is the coding of web pages, such as jsp, servlet, struts, and the java project is the coding of AWT and SWING.

3. The JAVA file in the Java Web project is triggered by the tomcat server, and the java project is started by the Main() method.

4. A Java Web project requires a server; a Java project does not require a server.

5. In Eclipse, the Java Web project can be converted into a Java project, and then transferred back to the Java Web project. The following figure shows the specific operation steps:


Second, the connection between the Java Web project and the Java project:

    The JavaWeb project needs to use Java to implement the business logic of the website or system.

The above is my potential understanding. If you have any understanding or ideas, you can learn from each other!



Guess you like

Origin blog.csdn.net/jianshou6442/article/details/80679018