【Bug】SpringCloudAlibaba整合Swagger时 启动报错
BUGspringcloudAlibaba 报错 启动 整合 swagger
2023-06-13 09:15:16 时间
报错
Description:
Parameter 2 of constructor in springfox.documentation.spring.web.readers.parameter.ModelAttributeParameterExpander required a bean of type 'springfox.documentation.spi.schema.EnumTypeDeterminer' that could not be found.
Action:
Consider defining a bean of type 'springfox.documentation.spi.schema.EnumTypeDeterminer' in your configuration.
问题背景
在SpringCloud Alibaba整合swagger2时,启动时报以上错误。
<!--swagger2-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${swagger.version}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.version}</version>
</dependency>
版本是2.7.0
问题原因
是因为swagger2版本太低导致的问题
解决方案
版本改为:<version>2.9.2</version>
相关文章
- 线上缺陷逃逸率(BUG漏测)
- 5. 如何描述一个bug / 如何定义bug的类型级别 / bug的生命周期
- 真赔麻了!一个BUG赔10万,一个回帖又赔10万!
- 记一次bug分析过程,并随之引发的思考
- 因为这个bug,我被同事鄙视了
- 比冒泡算法还简单的排序算法:看起来满是bug的程序,居然是对的
- Bug-Bounty-Tips
- 用户重复注册分析-多线程事务中加锁引发的bug
- MySQL8.0 show create view BUG解析
- 24 年了,终于有人发现 curl 的这个 Bug 了
- ORA-10970: backout event for bug 2133357 ORACLE 报错 故障修复 远程处理
- flask开发没有解决的bug记录详解大数据
- Chrome出了个小bug:论如何在Chrome下劫持原生只读对象
- 破解Oracle数据库修复Bug问题(oracle修改bug)
- Oracle 数据库改错远路(oracle 修复bug)
- Oracle Bug查找新姿势终极突破(oracle bug查找)
- Windows 10 Build 15048正式发布,专注修复Bug
- 耶鲁大学终身教授邵中:「没有 bug」的操作系统是如何炼成的?| CCF-GAIR 2017
- 通过event对象的fromElement属性解决热区设置主实体的一个bug
- IE6下js通过css隐藏select的一个bug
- 关于在IE下的一个安全BUG--可用于跟踪用户的系统鼠标位置
- 深入分析在Python模块顶层运行的代码引起的一个Bug