When deploying Dynamic Web Project, if the above exception still occurs when configuring web.xml or annotation correctly, you can try the method explained in the following content:
First , double-click servers in eclipse, the location is indicated by "1" in the figure below.
Check whether the General Information at position "2" is correct and at position "3" Is the Servlet Path path information configured correctly (generally, set the Tomcat configuration of Eclipse correctly, there is no problem with these two items, see the correct configuration method)
Next, look at the location "4 "Whether the path at "is the matching path for webapps under the Tomcat path, if not, follow the steps below:
First, find the Tomcat installation path, here Find the webapps folder under the path. You can select all and delete them all;
Next, enter Eclipse and see that position "4" is displayed as editable. , Next, click "Browse", select the correct path of webapps under Tomcat, and confirm;
Then, click location "5" to proceed The web Model is added as follows:
Finally, at the current location, click "Add Web Module" to add the Target project;
#Click "start" to run Tomcat.
The above is the detailed content of Solution to problem when java encounters .util.concurre. For more information, please follow other related articles on the PHP Chinese website!