原因是自動生成的hibernate.cfg.xml第二個標籤引號內容的最末尾有一個空格,刪掉即可
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd ">
原因是自動生成的hibernate.cfg.xml第二個標籤引號內容的最末尾有一個空格,刪掉即可
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd ">
配置gralde 調整gradle的倉庫使用阿里鏡像,在.gradle下創建init.gradle,並輸入以下內容: allprojects { repositories { maven {
1 joina 爲相關聯的實體或集合指定一個別名select mate from Cat as cat inner join cat.mate
Exception in thread "main" org.springframework.orm.hibernate4.HibernateSys