hibernate-cfg.xmlビルド ファイルで Ant hibernatecfg タスクを使用してファイルを作成します。org.springframework.orm.hibernate3.LocalSessionFactoryBeanconfigLocation プロパティ ( ) のsessionFactory Bean ( ) でそのファイルを参照しますclasspath:hibernate.cfg.xml。私の Bean 定義ファイルには、propertyConfigurer ( org.springframework.beans.factory.config.PropertyPlaceholderConfigurer) もあります。
propertyConfigurer はファイル内で置換を行いhibernate.cfg.xmlますか、それともそのファイル内のすべてをハードコーディングする必要がありますか?