“This is the sixth day of my participation in the Gwen Challenge in November. Check out the details: The Last Gwen Challenge in 2021.”

preface

Hello everyone, I'm GW_gw. I'm glad to learn and progress with you.Copy the code

The following content is from the network, if there is any infringement, please contact me to delete, this article is only used for learning exchange, not for any commercial purposes.

Abstract

This article focuses on using eclipse to create a JavaEE project. Teaching hand in hand to prevent readers from detours.Copy the code

Don’t worry if you’re using IDEA, click on the portal:

Super detailed – create JavaEE projects using IDEA

Getting started – create JavaEE projects using eclipse

1. Download the JavaEE version eclipse

Download link: www.jb51.net/softs/64829…

2. Create dynamic Web projects

  1. Switch to the JavaEE view:

  2. Create a dynamic Web project

  3. Selecting the Tomcat Server

3. Write your own Servlet

  1. Create a Servlet package.

  1. Create a Servlet

  1. Write a Servlet

Tomcat 4. Configuration

Create the servlet container.

Add component packages.

Modify a port.

5. Test the Servlet

Start and test:

OK, call it a day!

conclusion

This is how to create a JavaEE project using eclipse.