Hibernate访问数据库时加载的过程
对于大多数使用Hibernate的朋友来说,通常使用一下方式来获得Configuration实例: Configuration configure = new Configuration().configure();
在Hibernate 中,Configuration是hibernate的入口。在实例化一个Configuration的时候,Hibernate会自动在环境变量(classpath)里面查找Hibernate配置文件hibernate.properties。如果该文件存在,则将该文件的内容加载到一个 Properties的实例GLOBAL_PROPERTIES里面,如果不存在,将打印信息 hibernate.properties not found;
全文阅读:http://www.javah.net/wangluobiancheng/20070601/2120.html