0

hibernate-cfg.xml使用构建文件中的 Ant hibernatecfg 任务创建我的文件。我org.springframework.orm.hibernate3.LocalSessionFactoryBean在 configLocation 属性 ( classpath:hibernate.cfg.xml) 中的 sessionFactory bean ( ) 中引用了该文件。在我的 bean 定义文件中,我还有一个 propertyConfigurer ( org.springframework.beans.factory.config.PropertyPlaceholderConfigurer)。

propertyConfigurer 会在hibernate.cfg.xml文件中进行替换,还是我必须硬编码该文件中的所有内容?

4

1 回答 1

1

Spring 不会解析hibernate.cfg.xml.

于 2013-02-20T21:54:53.373 回答