在使用Spring Boot 2.3.0.RELEASE父版本时,SpringBootApplication类无法编译。

huangapple go评论91阅读模式
英文:

While using Spring Boot 2.3.0.RELEASE parent version, SpringBootApplication class is not compiling

问题

我正在尝试使用 Spring Boot Parent 2.3.0 和 Postgresql 开发简单的 CRUD 应用程序。

在 SpringBootApplication 类中出现以下错误,无法编译或运行项目。

- 无法解析类型 org.springframework.data.repository.query.QueryLookupStrategy$Key。它是从所需的 .class 文件间接引用的

- 无法解析类型 org.springframework.data.repository.config.BootstrapMode。它是从所需的 .class 文件间接引用的

在使用Spring Boot 2.3.0.RELEASE父版本时,SpringBootApplication类无法编译。

在使用Spring Boot 2.3.0.RELEASE父版本时,SpringBootApplication类无法编译。

在使用Spring Boot 2.3.0.RELEASE父版本时,SpringBootApplication类无法编译。

在之前的 Spring Parent 版本中,一切正常。这个问题出现在 2.3.0 版本中。

任何帮助将不胜感激!!

英文:

I am trying to develop simple CRUD app using Spring Boot Parent 2.3.0 and Postgresql.

Getting below errors in SpringBootApplication class and could not able to compile or run the project.

- 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 Boot 2.3.0.RELEASE父版本时,SpringBootApplication类无法编译。

在使用Spring Boot 2.3.0.RELEASE父版本时,SpringBootApplication类无法编译。

在使用Spring Boot 2.3.0.RELEASE父版本时,SpringBootApplication类无法编译。

On previous version of spring parent everything working fine. This issue is with 2.3.0.

Any help appreciated!!

答案1

得分: 1

也许是依赖冲突或者m2目录中出现了一些问题,所以你可以尝试从m2目录中删除org/springframework,然后运行mvn clean install,也许会正常工作。

英文:

Maybe its dependency conflict or something wrong in m2 directory, So You can try to delete org/springframework from m2 directory, Then mvn clean install, Maybe it will work fine.

huangapple
  • 本文由 发表于 2020年5月30日 03:19:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/62093228.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定