2017-03-27 60 views
1

我添加了對於spring-boot-starter-data-jpaspring-boot-starter-jdbc的依賴關係。而我得到的問題:「無法讀取工件描述符......」無法讀取工件描述符Spring Boot

This is error

我下載的罐子和在哪裏都是依賴文件夾手動添加和我說喜歡引用的庫,但沒有幫助。 有人可以幫我嗎?

這是pom.xml中的一部分:

<parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.5.2.RELEASE</version> 
     <relativePath/> <!-- lookup parent from repository --> 
    </parent> 

     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-jdbc</artifactId> 
     </dependency> 

     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-data-jpa</artifactId> 
     </dependency> 

回答

3

下載罐子和手動添加不會增加的依賴關係和孩子依賴條件。此外,POM不會被更新。 嘗試從您的Maven倉庫(.m2目錄)刪除下列文件夾

org.springframework.boot:spring-boot-starter-jdbc 

org.springframework.boot:spring-boot-starter-data-jpa 

並刷新Maven項目(ALT + F5)。

然後你可以得到實際的錯誤(如果存在),你可以在這裏發佈它。

+0

非常感謝你,這項工作! :d –

相關問題