JavaWeb project in a few clicks on the browser blocked

Problem Description

In learning JavaWeb project, after the project started by the IDE, click on the link in the browser several times to block the page, the browser has been going round in circles can not be loaded, no background log output.

The first time I met this situation, there is no completely unable to log analysis in the end what the problem is, I think it is not the original idea of ​​the problem, but the teacher to use the sample code is run and there is no problem, so I knew it was a problem with my code but there is no error, how to start it?

1585027049713

Solution

After much thought, constantly checking, I realized that my database connection pool recovery forget released, the connection uses the maximum, so a direct blocking, adding the operation to close the connection just fine.

Guess you like

Origin www.cnblogs.com/welisit/p/12562418.html