One, tomcat configuration environment variables
Tomcat download the latest from the official website, I downloaded the installation version. You will need to set the user name and password during the installation process and select the appropriate JDK installation directory. These are simple and straightforward next steps, and after the installation is complete, you configure Tomcat's environment variables.
The reason for configuring environment variables is the same as configuring the JDK environment variables in Java to be able to find the relevant tools and libraries for Tomcat. The specific need to configure the following environment variables, I directly write a batch script, run in the command-line tool.
Set Catalina_base=d:\tomcat 9.0
Set Catalina_home=d:\tomcat 9.0
Set path=%catalina_home%\lib;%catalina_home%\bin;%path%
After configuring the environment variables, start the Tomcat server. Then enter in the browser address bar: http://localhost:8080/can go to Tomcat's official web page to indicate that the Tomcat configuration was successful.
Second, the first JSP program
The development tool I use is idea, after creating the good one Javaweb project, you need to integrate Tomcat into idea and then run the program to see the corresponding page in the browser. The key needs to be configured in 2 places.
After configuring the 2 places above, you can run the project directly.
Ii. Tomcat configuration and idea running the first JSP project--javaweb drip