使用jpa hibernate时 mysql的驱动和url
driverClassName=org.gjt.mm.mysql.Driver
url=jdbc:mysql://localhost:3306/itcast3?useUnicode=true&characterEncoding=UTF-8
使用jdbc时mysql的驱动和url
driver = "com.mysql.jdbc.Driver";
url="jdbc:mysql://localhost:3306/exam?useUnicode=true&characterEncoding=UTF-8";
driverClassName=org.gjt.mm.mysql.Driver
url=jdbc:mysql://localhost:3306/itcast3?useUnicode=true&characterEncoding=UTF-8
使用jdbc时mysql的驱动和url
driver = "com.mysql.jdbc.Driver";
url="jdbc:mysql://localhost:3306/exam?useUnicode=true&characterEncoding=UTF-8";