![](/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.