2013-02-20 100 views
0

我在我的構建文件中使用Ant hibernatecfg任務創建了我的hibernate-cfg.xml文件。我在configLocation屬性(classpath:hibernate.cfg.xml)中的sessionFactory bean(org.springframework.orm.hibernate3.LocalSessionFactoryBean)中引用該文件。 在我的bean定義文件中,我也有一個propertyConfigurer(org.springframework.beans.factory.config.PropertyPlaceholderConfigurer)。hibernate-cfg.xml和屬性佔位符

propertyConfigurer會替換hibernate.cfg.xml文件中的替換嗎?還是必須對該文件中的所有內容進行硬編碼?

回答

1

Spring將無法解析hibernate.cfg.xml中的屬性。