按照课本及视频教学练习时,运行代码弹出窗体不能正常加载数据库信息,运行也没见到报错提示,求解
根号申 发表于2018-12-26 08:56
章后有常见错误纠错题,你按照那些题的思路进行排查
运行后可以弹出窗体,但加载不了数据,下面是运行后的信息
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Environment <clinit>
信息: Hibernate 3.2.0
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Environment buildBytecodeProvider
信息: Bytecode provider name : cglib
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Environment <clinit>
信息: using JDK 1.4 java.sql.Timestamp handling
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource: pojo/User.hbm.xml
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: pojo.User -> tb_users
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource: pojo/Customer.hbm.xml
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: pojo.Customer -> tb_customer_info
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource: pojo/Communication.hbm.xml
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: pojo.Communication -> tb_communication_info
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.HbmBinder bindCollectionSecondPass
信息: Mapping collection: pojo.Customer.communicationList -> tb_communication_info
十二月 27, 2018 3:47:42 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Using Hibernate built-in connection pool (not for production use!)
十二月 27, 2018 3:47:42 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: Hibernate connection pool size: 20
十二月 27, 2018 3:47:42 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: autocommit mode: false
十二月 27, 2018 3:47:42 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://127.0.0.1:3306/test02
十二月 27, 2018 3:47:42 下午 org.hibernate.connection.DriverManagerConnectionProvider configure
信息: connection properties: {user=root, password=****}
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: RDBMS: MySQL, version: 5.6.42-log
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC driver: MySQL Connector Java, version: mysql-connector-java-5.1.36 ( Revision: 4fc1f969f740409a4e03750316df2c0e429f3dc8 )
十二月 27, 2018 3:47:42 下午 org.hibernate.dialect.Dialect <init>
信息: Using dialect: org.hibernate.dialect.MySQLDialect
十二月 27, 2018 3:47:42 下午 org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
信息: Using default transaction strategy (direct JDBC transactions)
十二月 27, 2018 3:47:42 下午 org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic flush during beforeCompletion(): disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Automatic session close at end of transaction: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC batch size: 15
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC batch updates for versioned data: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Scrollable result sets: enabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JDBC3 getGeneratedKeys(): enabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Connection release mode: auto
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Maximum outer join fetch depth: 2
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default batch fetch size: 1
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Generate SQL with comments: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Order SQL updates by primary key: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
信息: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
十二月 27, 2018 3:47:42 下午 org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
信息: Using ASTQueryTranslatorFactory
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: JPA-QL strict compliance: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Second-level cache: enabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Query cache: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory createCacheProvider
信息: Cache provider: org.hibernate.cache.NoCacheProvider
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Structured second-level cache entries: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Statistics: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Deleted entity synthetic identifier rollback: disabled
十二月 27, 2018 3:47:42 下午 org.hibernate.cfg.SettingsFactory buildSettings
信息: Default entity-mode: pojo
十二月 27, 2018 3:47:42 下午 org.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
十二月 27, 2018 3:47:42 下午 org.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: Not binding factory to JNDI, no JNDI name configured