Current location - Health Preservation Learning Network - Healthy weight loss - Tomcat can't connect to the database under docker. What's going on here?
Tomcat can't connect to the database under docker. What's going on here?
You can create a new JSP page in the simplest way. Then deploy your WEB project to tomcat. Then start tomcat.

Access the newly created JSP. If it's okay. This proves that you have a problem with JDBC.

The project framework we are writing now pays little attention to JDBC in the background.