When building a shopping site, replace the IDE with Eclipse Java EE. Configuring JDBC before working in a myeclipse environment is a direct right-click Project to bring in the appropriate jar package through build path, but this does not work under eclipse-Eclipse will always prompt for DB drivers and connections when calling DB. Searching the web, we found that the JDBC jar package was introduced into Project's Webcontent/web-inf/lib directory to solve the problem.
Original link: http://blog.csdn.net/liyong199012/article/details/8063845
But there is a question: Why would eclipse put the JDBC jar package in the WebContent directory? The individual feels that the JDBC jar package should be part of the Java resource, which is not related to the web. What do you think?
Eclipse Java EE references the JDBC times error: DB driver and connection resolution not found