mappingLocations、mappingDirectoryLocations与mappingJarLocations 区别 由于spring对hibernate配置文件hibernate.cfg.xml的集成相当好, 所以,在项目中我一直使用spring的org.springframework.orm.hibernate.LocalSessionFactoryBean来取代hibernate.cfg.xml文件的功能 LocalSessionFactoryBean有好几个属性用来查找hibernate映射文件:mappingResources、mappingLocations、map…
2009-08-16 17:11 · SSH · Spring · XML · Hibernate · ORM · Web