![](/img/trans.png)
[英]org.springframework.hateoas.Resource and org.springframework.hateoas.mvc.ControllerLinkBuilder cannot be found when using spring-boot-starter-hateoas
[英]org.springframework.hateoas.ResourceSupport not found spring boot
我已经更新了 spring boot 版本。
springBootVersion = "2.1.13.RELEASE" to "2.3.11.RELEASE"
发布我收到 ResourceSupport not found 错误。 我已经阅读了 hatoas 文档并了解到这个特定的类已重命名为其他类。 我曾尝试升级以下依赖项,但没有帮助。
compile "io.springfox:springfox-swagger-ui:3.0.0"
compile "io.springfox:springfox-swagger2:3.0.0"
compile 'io.springfox:springfox-boot-starter:3.0.0'
你能帮我解决这个问题吗。
我有同样的问题,在 Spring Hateoas doc 中发现(见https://docs.spring.io/spring-hateoas/docs/current/reference/html/#reference )你应该改变,ResourceSupport 现在是 RepresentationModel
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.