gpt4 book ai didi

java - 未找到 JDBC 驱动程序类

转载 作者:行者123 更新时间:2023-12-01 19:17:45 25 4
gpt4 key购买 nike

当我运行类测试时,我遇到了 hibernate 配置问题:

creating session factory
3 mai 2011 09:47:50 net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1.6
3 mai 2011 09:47:50 net.sf.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
3 mai 2011 09:47:50 net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
3 mai 2011 09:47:50 net.sf.hibernate.cfg.Configuration configure
INFO: configuring from file: hibernate.cfg.xml
3 mai 2011 09:47:51 net.sf.hibernate.cfg.Configuration addResource
INFO: Mapping resource: org/domain/projet/config/Employe.hbm.xml
3 mai 2011 09:47:52 net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: org.domain.projet.config.Employe -> employe
3 mai 2011 09:47:52 net.sf.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory:
3 mai 2011 09:47:52 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-many association mappings
3 mai 2011 09:47:52 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-one association property references
3 mai 2011 09:47:52 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
3 mai 2011 09:47:52 net.sf.hibernate.cfg.SettingsFactory buildSettings
ATTENTION: No dialect set - using GenericDialect: Dialect class not found: org.hibernate.dialect.MySQLDialect
3 mai 2011 09:47:52 net.sf.hibernate.dialect.Dialect <init>
INFO: Using dialect: net.sf.hibernate.dialect.GenericDialect
3 mai 2011 09:47:52 net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Use outer join fetching: true
3 mai 2011 09:47:52 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
3 mai 2011 09:47:52 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 1
JDBC Driver class not found: com.jdbc.mysql.driver
3 mai 2011 09:47:52 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
GRAVE: JDBC Driver class not found: com.jdbc.mysql.driver

最佳答案

您需要一个 mysql-connector-*.jar在你的类路径上

关于java - 未找到 JDBC 驱动程序类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5867248/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com