【发布时间】:2020-05-29 19:19:05
【问题描述】:
我正在尝试使用 Spring Boot Parent 2.3.0 和 Postgresql 开发简单的 CRUD 应用程序。
在 SpringBootApplication 类中出现以下错误,无法编译或运行项目。
- The type org.springframework.data.repository.query.QueryLookupStrategy$Key cannot be resolved. It is indirectly referenced from required .class files
- The type org.springframework.data.repository.config.BootstrapMode cannot be resolved. It is indirectly referenced from required .class files
在以前版本的 spring parent 上一切正常。此问题与 2.3.0 有关。
任何帮助表示赞赏!
【问题讨论】:
-
你从 spring 中使用的依赖项是什么?
-
我觉得你那里不需要父定义,starter-jpa 和 starter-web 应该就够了,要不要去掉父标签部分再重新编译?
-
父标签管理整个spring依赖,如果他从pom中删除它,他们将不得不为每个标签使用特定的版本。
标签: java spring postgresql spring-boot spring-data-jpa