문제

I am trying to create a my first hibernate application in these application by using hibernate tool i am trying to create cfg.xml file but in these file Driver class is "org.gjt.mm.mysql.Driver" itis coming default for MYSQL 5 but while doing hibernate code generation configuration it's throwing the exception that driver ClassNotFound exception

도움이 되었습니까?

해결책

See this post.

What is the jdbc driver "org.gjt.mm.mysql.Driver" for?

You need to download correct mysql connector and put it on your classpath as the one you are using (org-gjt-mm-mysql-driver) is very old

And change your hibernate configuration to use it.

다른 팁

Make sure that the jar file containing the driver is in your classpath when you run the hibernate tool.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top