Place the MySQL JAR connector in the WEB-INF / lib of my WAR, and not in $ CATALINA_HOME / common / lib?

I am going to use MySQL with Hibernate on a Tomcat 5.5.x server.

Do I have to put mysql-connector-java-[version]-bin.jarin $CATALINA_HOME/common/lib/or can I place it in WEB-INF/libinside my WAR file with my other library dependencies?

It would be easier to have it in my WAR WEB-INF/lib, since I could get it using the Maven repository. Are there any great backlinks for it there, and not in the general Tomcat library directory?

+3
source share
1 answer

, tomcat. webapp . -, webapp. , , - tomcat , mysql (, ), jdbc, . .

, tomcat , db. , .

webapp/WEB-INF/lib? , , webapp, webapp - , tomcat. , webapp tomcat. : -, , .

, , . .

+5

Source: https://habr.com/ru/post/1702133/


All Articles