If you don’t have Tomcat, you can download it directly on the official website http://tomcat.apache.org/ and unzip it directly after downloading. I chose Tomcat 8, 64-bit.
Select Window->Preferences->Server->Runtime Environments->Add on eclipse
Select Next, then select Browse, select the Tomcat you downloaded, and click Finish.
Select Window->Show View->Server, call out Server, then add Server, click as shown below. Choose Finish.
To test whether the installation is successful, click the newly added Tomcat, right-click and select Start, and then look at the Console. If no error is reported, the configuration is successful.