当前位置:网站首页>Swagger's pit
Swagger's pit
2022-07-19 04:56:00 【dzl84394】
- Can't find getPluginFor
NoSuchMethodError: org.springframework.plugin.core.PluginRegistry.getPluginFor
springboot 2 above , Don't use swagger 3 Version above ,springboot It is impossible to downgrade , hold swagger drop to 2.92, Don't use the latest
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
Reference resources https://stackoverflow.com/questions/59703461/nosuchmethoderror-org-springframework-plugin-core-pluginregistry-getpluginordef
- WebMvcConfigurationSupport、 WebMvcConfigurer Be careful
It is used in pure back-end components swagger, If it is springboot+thymeleaf+Security It's more troublesome , The path will be in a mess , Various 404( There may be something that can be solved , But it's more troublesome ) - Jackson The problem of
I have a project myself , Fully transformed into gson, So it ruled out jackson-databind,swagger It is used. Jackson , Let it out ( There may be the problem of avoiding rules , But it's really unfriendly )
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>com.fasterxml.jackson.core</groupId>-->
<!-- <artifactId>jackson-databind</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
</dependency>
- Remember to turn off
@ConditionalOnProperty (name = “swagger.enable”, havingValue = “true”)
Then add
swagger.enable=true
The production environment does not add , Off by default
Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/. Please enter the location manually:
- Download files such as Excel Or upload files
This will obviously go wrong
边栏推荐
- 渗透测试 10 --- 扫描 web目录 (dirb、wfuzz、wpscan、nikto)
- RestAPI
- 邮箱发送邮件(包含附件,网易、QQ)
- Overview of CKA core knowledge points
- 项目组暑假总结02
- tidb 学习
- Redis cluster interview questions
- UE-插件 ElectronicNodes 5.0.0/4.23-4.27
- Blessing for the elderly popular short video wechat applet source code download support traffic master
- Web development with fastapi
猜你喜欢
随机推荐
网址在线封装APK系统源码
DSL search results processing, including sorting, paging, highlighting
junit4和junit5区别
项目组暑假总结01
【Lipschitz】基于matlab的Lipschitz李氏指数仿真
Record a stored procedure to batch modify the table structure
浅聊链路追踪
ThinkPHP official website tutorial
Website online package APK system source code
邮箱发送邮件(包含附件,网易、QQ)
MYSQL数据库表A数据同步到表B
Some concepts of ES
Freshman task-5
Differences between substr and substring in JS
Emqx pressure test tread pit for your reference
赚钱大师小程序【最新版5.9.9】商城/佣金即时提现/分销推广/话费充值/美团饿了么外卖
redis 安装
[FPGA tutorial case 26] realize the basic operation of decimals through Verilog in FPGA
Tidb performance analysis and optimization
老年祝福火爆短视频微信小程序源码下载支持流量主







![[FPGA tutorial case 26] realize the basic operation of decimals through Verilog in FPGA](/img/94/a123d212ccde207395d72e9563012c.png)
