java - org.springframework.hateoas.ResourceSupport 未找到 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 文档中发现(参见https://docs.spring.io/spring-hateoas/docs/current/reference/html/#reference)你应该改变,ResourceSupport 现在是 RepresentationModel
推荐阅读
- php - 在 Eloquent 模型上调用块时 /bootstrap/cache/compiled.php 中的 BadMethodCallException
- android - 请求互联网许可不起作用
- php - 不期望从桌子附近的地方
- angular - 如何将innerHTML与翻译绑定
- javascript - 如何对 Ul 和 Li div 数据进行排序
- java - API 21(android 5)及以下版本的正则表达式模式错误
- python - pyqt 按钮自动绑定到 on_..._clicked 函数,无需连接或 pyqtSlot
- swift - SKAction.moveBy 不工作,我不知道为什么
- pandas - 转换数据框列并保留原始数据
- azure - 似乎我从 azure ad 获得了错误的不记名令牌,APM API 未经授权