IntelliJ IDEA installation and jsp development environment construction

IntelliJ IDEA installation

Required files: jdk1.8 , IntelliJ IDEA , Tomcat8

  1. Install jdk Double-click the downloaded jdk file, then next, next,...finish. It is said that Java is not compatible from top to bottom, so choosing the latest version may cause various problems. Isn't this a typical cheating incident, and my father was ruthlessly abandoned like this.
  2. Install IntelliJ Double-click the IntelliJ installation package, the steps are as above. Then start and initialize the project.

  1. Modify the IDE configuration (personal habit) Open the IDE, the font is too small, let alone find the settings (File->Settings)

It is said that it can be modified as a shortcut key of VS, immediately retrieve the keymap, and select Visio Studio

However, the comment shortcut key Ctrl+k Ctrl+c feels cheated

jsp development environment to build

  1. Create a new web project File->New->Project, then Next, Next, Finish

Add web framework

  1. Configure Tomcat Add application server Tomcat

Configure Tomcat

Startup project

4. Problems and solutions in configuration

  1. Tomcat default port 8080 is occupied before doing .net development. Several projects are deployed on IIS. Port 8080 is used by one of the projects. Just modify the Tomcat configuration port. The specific modification method can be retrieved by yourself.
  2. Unable to ping port 1099 At first, I thought it was a problem that the port was occupied and could not be started. Although it was prompted that it could not be pinged, it still could not be started after modifying several port numbers. Later, I remembered that java is not backward compatible. Download Tomcat8 and remove it. Use Tomcat9, just reconfigure
  3. Tomcat starts successfully, but when the Tomcat configuration is not started for the web project, the Deployment configuration is abnormal. This is also a problem that has troubled me for the longest time. There should be no problem with the new project according to the previous configuration. Because I opened the company's existing project (Import Project), artifacts will not be generated when I open the project (it is said to be the project deployment configuration), which makes it impossible to deploy the project when Tomcat starts, and it cannot be accessed. Solution: add An artifact (File->Project Structure->Project Settings->Artifacts->Add)

Guess you like

Origin blog.csdn.net/2301_76965813/article/details/130473698