Java – constant warning when running Tomcat from IntelliJ
•
Java
Suddenly, when I run Tomcat from inside IntelliJ, the output console is constantly bombarded by mail@ H_ 502_ 2 @ (very) short video display:
16:05:31,157 WARN http-nio-8222-exec-1 servlet.PageNotFound:198 - Request method 'HEAD' not supported 16:05:31,158 WARN http-nio-8222-exec-2 servlet.PageNotFound:1120 - No mapping found for HTTP request with URI [/] in DispatcherServlet with name 'dispatcher'
Solution
I have exactly the same problem If your Tomcat running configuration is set to open the browser at startup, IntelliJ will try to Ping the website to ensure that it has been started before opening the browser I believe it is making a head request, and you will receive an error because your site is not set to answer / head requests Uncheck the "after startup" check box under "open browser" in the server tab of running configuration to repair it for me I don't know what to do to get JetBrains to solve this problem I just upgraded to 14.0 3. This may be the reason
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码