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.
Also enter the following command on the command line can use the computer's case to determine port
netstat -an
- Log which distortion occurs
as shown below:
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。
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.
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:
the case of FIG. If the configuration was successful appearing
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.
2019.12.10