The user must supply a JDBC connection错误


new  Configuration() 
默认使用的是hibernate.properties 
因为你没有  所以这时log会打出10:22:55,713    INFO  Environment:491  -  hibernate.properties  not  found 

这时你要使用了hibernate.cfg.xml只要这样些就可以了 
new  Configuration().configure()就可以加载进来了!

你可能感兴趣的:(Hibernate,xml,jdbc)