[Java development environment configuration] eclipse installation, development of Web projects with Tomcat

[Java development environment configuration] eclipse installation, development of Web projects with Tomcat

\1. The version is "eclipse-jee-photon-R-win32-x86_64". If it is a complete program, it can be used directly after decompression. If only the bootloader is installed, double-click to install.

As shown in the figure, the compressed package is the full version, and the exe is the installation guide.
Insert picture description here

\2. Choose javaEE developer

Insert picture description here

\3. Choose a suitable directory to install

Insert picture description here

\4. Accept the agreement in the middle

Insert picture description here

\5. Choose remember and accept

Insert picture description here

\6. Open and try

Insert picture description here

\7. Set a default project directory (workspace), open

Insert picture description here

\8. Create a new JavaEE project

Insert picture description here

\9. Name the project and set the default runtime environment.
Insert picture description here

\10. Select Tomcat9 (the Tomcat version here is based on the version installed by itself, here is Tomcat9), then select next, and then select the directory of Tomcat installed above. Then finish, then finish.

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

\11. The default project directory is like this.

Insert picture description here

\12. Right mouse button webcontent, new, JSP file

Insert picture description here

\13. Name the JSP file index, and then finish

Insert picture description here

\14. Write a sentence in the body tag. Then save.

Insert picture description here

\15. Right-click the entire project icon, run as, run on server
Insert picture description here

\16. The default setting is fine, finish
Insert picture description here

\17. The browser that comes with Eclipse will display the web page.

Insert picture description here

\18. You can also enter the address in an external browser to view the results. So far, tomcat and eclipse are installed and can work together correctly.
Insert picture description here

Guess you like

Origin blog.csdn.net/hkdhkdhkd/article/details/109961409