首页 新闻 搜索 专区 学院

hibernate总是出错,红色的部分

0
[待解决问题]

12:50:38,162  INFO Version:66 - HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
12:50:38,175  INFO Version:54 - HHH000412: Hibernate Core {4.3.11.Final}
12:50:38,178  INFO Environment:239 - HHH000206: hibernate.properties not found
12:50:38,180  INFO Environment:346 - HHH000021: Bytecode provider name : javassist
12:50:38,212  INFO Configuration:2075 - HHH000043: Configuring from resource: /hibernate.cfg.xml
12:50:38,213  INFO Configuration:2094 - HHH000040: Configuration resource: /hibernate.cfg.xml
12:50:38,282  INFO Configuration:759 - HHH000221: Reading mappings from resource: cn/itcast/entity/Customer.hbm.xml
12:50:38,367  INFO Configuration:759 - HHH000221: Reading mappings from resource: cn/itcast/entity/Person.hbm.xml
12:50:38,403  INFO Configuration:759 - HHH000221: Reading mappings from resource: cn/itcast/entity/Book.hbm.xml
12:50:38,424  INFO Configuration:759 - HHH000221: Reading mappings from resource: cn/itcast/entity/Human.hbm.xml
12:50:38,443  INFO Configuration:2216 - HHH000041: Configured SessionFactory: null
12:50:38,550  WARN DriverManagerConnectionProviderImpl:93 - HHH000402: Using Hibernate built-in connection pool (not for production use!)
12:50:38,596  INFO DriverManagerConnectionProviderImpl:166 - HHH000401: using driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] at URL [jdbc:sqlserver://localhost:1433;DatabaseName=h1]
12:50:38,597  INFO DriverManagerConnectionProviderImpl:175 - HHH000046: Connection properties: {password=****, release_mode=after_statement}
12:50:38,597  INFO DriverManagerConnectionProviderImpl:180 - HHH000006: Autocommit mode: false
12:50:38,599  INFO DriverManagerConnectionProviderImpl:102 - HHH000115: Hibernate connection pool size: 20 (min=1)

nothing_software的主页 nothing_software | 菜鸟二级 | 园豆:202
提问于:2017-05-20 13:03
< >
分享
所有回答(2)
0

SessionFactory 报 null? 看看包 和两个配置文件 能在截个图吗?

Ankermaker | 园豆:251 (菜鸟二级) | 2017-05-20 17:04
0

你看你第三句

12:50:38,178  INFO Environment:239 - HHH000206: hibernate.properties not found

你这个是连接数据库的属性文件吗?

吉吉的城 | 园豆:566 (小虾三级) | 2017-05-22 21:02
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册