put mysql-connector-java-5.x.x-bin.jar into WEB-INF\lib.
Right click project name, Build Path -> Configure Build Path -> Java Build Path -> Libraries
Click ‘Add External JARs‘, dialog ‘JAR Selection‘ pops up,
chose the path where mysql-connector-java-5.1.18-bin.jar is,
click ‘OK‘ to return dialog, and click ‘OK‘ again.
时间: 2024-11-08 11:15:54