2013-02-20 4 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과 프로퍼티 플레이스 홀더

hibernate.cfg.xml 파일에서 propertyConfigurer를 대체합니까, 아니면 해당 파일의 모든 것을 하드 코딩해야합니까?

답변

1

봄은 hibernate.cfg.xml의 속성을 해결하지 않습니다.