win10 IDEA tomcat configuration problems encountered and solutions

In recent learning content related to Java back-end, the need to use tomcat, there are many online tutorials good configuration, but he is still experiencing some problems, so write this article for your reference, we want to help.

  • System: win10
  • tomcat Version: 9.0.29
  • Development tools: IDEA

Installation and configuration process may refer to the article two big brothers mounting detailed tutorial Apache Tomcat 9 (unlike other online tutorials, effective pro-test) on Windows 10 , the Tomcat IDEA and Related Problems (1) .

Here is the problem I encountered in the installation and configuration process that is the solution.

  • Port is being used
    by default port 8080 is used, this port may have been occupied, can be directly modified for other ports.
    Find tomcat installation directory (after extracting archive is the installation directory If you downloaded), and then findconfDirectoryserver.xmlFile, use Notepad to open, and then modify the port number, attention isConnector port.
    Here Insert Picture Description
    Also enter the following command on the command line can use the computer's case to determine port
netstat -an

Here Insert Picture Description

  • Log which distortion occurs
    as shown below:
    Here Insert Picture Description
    Found tomcat installation directory (if the downloaded archive directory is installed after decompression), to findconfDirectorylogging.propertiesFile, open a Notepad, to modify the coding mode isGBK
    Here Insert Picture Description

Two above is installed and configured after the success, in fact, better to install, configure, but there are still many problems. Specific details with reference to the article Gangster Tomcat configuration issues associated with IDEA (1) , the author said the following about the place a little pit.

Configured to do so, we must first build a web project, select when creating a new project proposalsJava Enterprise, Actually, this is specially prepared for these projects.
Here Insert Picture Description
Note that the figure is already equipped with a good case, under normal circumstances Application Server is empty, click on the back == new ... == can be configured. We recommend the following configuration:
Here Insert Picture Description
Here Insert Picture Description
the case of FIG. If the configuration was successful appearing
Here Insert Picture Description

the above. Note This article does not deal with specific installation and configuration process, it is easy to point out some of the wrong places.

Here Insert Picture Description
2019.12.10

Published 52 original articles · won praise 59 · views 6838

Guess you like

Origin blog.csdn.net/ataraxy_/article/details/103480766