Spring boot 打包工作的Spring工具套件应用程序时出错

Spring boot 打包工作的Spring工具套件应用程序时出错,spring-boot,maven,sts,crud-repository,Spring Boot,Maven,Sts,Crud Repository,我在SpringTools套件上编写了一个SpringBoot应用程序,它在STS上运行良好。这是《SpringInAction》第五版的一个例子(顺便说一句,这本书的代码有很多bug)。但当我试图将其打包到jar文件时,Maven突然开始抛出编译错误。基本信息包括: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project ta

我在SpringTools套件上编写了一个SpringBoot应用程序,它在STS上运行良好。这是《SpringInAction》第五版的一个例子(顺便说一句,这本书的代码有很多bug)。但当我试图将其打包到jar文件时,Maven突然开始抛出编译错误。基本信息包括:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project taco-cloud: Compilation failure: Compilation failure: 

[ERROR] /Users/lm2a/mmxx/sts-workspace/taco-cloud/src/main/java/tacos/data/JdbcTacoRepository.java:[18,8] tacos.data.JdbcTacoRepository is not abstract and does not override abstract method deleteAll() in org.springframework.data.repository.CrudRepository

[ERROR] /Users/lm2a/mmxx/sts-workspace/taco-cloud/src/main/java/tacos/data/JdbcIngredientRepository.java:[14,8] tacos.data.JdbcIngredientRepository is not abstract and does not override abstract method deleteAll() in org.springframework.data.repository.CrudRepository

[ERROR] /Users/lm2a/mmxx/sts-workspace/taco-cloud/src/main/java/tacos/data/JdbcIngredientRepository.java:[31,3] method does not override or implement a method from a supertype

[ERROR] /Users/lm2a/mmxx/sts-workspace/taco-cloud/src/main/java/tacos/data/JdbcOrderRepository.java:[19,8] tacos.data.JdbcOrderRepository is not abstract and does not override abstract method deleteAll() in org.springframework.data.repository.CrudRepository
它假设在SpringDataJPA上,我们可以使用一个我们不需要实现的接口(CRUDepository),它将为我们提供许多CRUD方法。这一事实以及它在STS上运行平稳的事实(没有人抱怨没有实现任何方法)让我感到失落。
任何帮助都将不胜感激。

请忘记这个问题。这只是我的错误,一些JDBC实现(第3章中的早期示例)仍保留在我的JPA项目中,而且类正在实现一些CRUD方法,这似乎是错误的根源。向我道歉