0
Spring 3.2.0發佈,Hibernate。例外 -sessionfactory,beans和多個xml-config文件
class path resource [hibernate.cfg.xml] cannot be resolved to URL because it does not exist
文件路徑 - 的src/main/JAVA/hibernate.cfg.xml的
此目的地和文件模板是由IntelliJ IDEA的自動生成。谷歌告訴我,解決方案之一 - 刪除類路徑前綴,但我沒有這個propety文件。
THX,現在我遇到其他錯誤與數據源。 在ServletContext資源[/WEB-INF/data.xml]中定義名稱爲'sessionFactory'的Bean時創建錯誤:調用init方法失敗;嵌套異常是java.lang.NoSuchMethodError:org.springframework.jdbc.datasource.DataSourceUtils.doCloseConnection(Ljava/sql/Connection; Ljavax/sql/DataSource;)V –
你有不同版本的DataSourceUtils在classpath中沒有這個方法 –