Swagger报错 For input string: “” 原因: ApiModelProperty中example的默认值为“”,转换会出现问题 1.5.20版本的AbstractSerializableParameter中400行左右这里只判断了null 如果改为this.example == null || this.example.isEmpty()则为正常情况 解决方案 1、更改源码
原创 2023-08-08 19:40:16
125阅读
今天下载jeeweb框架下来研究,其他还有,就是swagger老是出不来。报错:No handler found for GET /swagger-ui.html 后来搜索才发现,这个错误,是因为资源映射问题导致的。 我们在访问http://127.0.0.1:8188/swagger-ui.htm
转载 2019-01-08 14:55:00
1306阅读
2评论
访问Swagger经常碰到如下错误: Fetch error: Internal Server Error /swagger/v1/swagger.json 解决办法: 查看控制器 1、查看是否写:[HttpPost]或其它特性2、查看是否写:[Route("api/[controller]")] ...
转载 2021-09-06 20:09:00
6674阅读
2评论
开发本地测试没问题,发布iis报错原因: swagger判断开发环境和发布环境解决办法:在startup.cs文件中找到调用swagger方法不做判断 app.UseSwagger();            app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.j
原创 2023-10-23 16:32:50
904阅读
报错信息:org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException at org.springframework.contex
原创 2023-05-15 16:15:27
616阅读
版本冲突在application.properties文件中添加下面这句,解决了。​ spring.mvc.pathmatch.matching-strategy=ant_path_matcher​
原创 2022-03-05 22:17:32
615阅读
2点赞
Description:Parameter 2 of constructor in springfox.documentation.spring.web.read
原创 2022-06-27 13:47:05
3471阅读
在配置类中加上: mvc: pathmatch: matching-strategy: ant_path_matcher
原创 2022-10-20 10:24:46
303阅读
Springboot中使用了Swagger用来生成接口文档,但运行时报错了:failed to start bean 'documentationpluginsbootstrapper'; nested exception is...
原创 2022-06-16 09:33:18
10000+阅读
报错: 2023-09-08 15:42:59.043 WARN 27164 [io-8080-exec-14] i.s.m.p.AbstractSerializableParameter [421] : Illegal DefaultValue null for parameter type integer java.lang.NumberFormatException: For i
原创 2023-09-08 17:36:42
110阅读
Swagger 解决 Illegal DefaultValue null for parameter type integer 异常
原创 2022-05-27 18:40:23
4992阅读
1点赞
swagger2:Illegal DefaultValue null for parameter type integer
控制台warn提示 Illegal DefaultValue null for parameter type integer java出现这个问题主要是使用了 ApiModelProperty 注解修饰了非 String 类型的变量,而此时,example 未赋值造成。@ApiModelProperty(value = "用户 id", dataType = "int", example = "1")private int id;上面这种写法就不会报警告了。除了上面这种方式,还可以使用如下配置避
原创 2021-07-09 10:30:31
549阅读
控制台warn提示 Illegal DefaultValue null for parameter type integer java出现这个问题主要是使用了 Ap
原创 2022-03-14 14:42:23
381阅读
使用swagger传递map类型的参数报错406
原创 2018-11-27 17:44:48
10000+阅读
一般查看swagger有些路径打开都是json,那怎么更好查看呢?可以下载chrome的Swagger UI Console插件.在地址栏那里输入路径:即可查看...
原创 2022-08-05 08:41:36
879阅读
Swagger高效API文档管理实践指南 本文深度解析Swagger在API文档管理中的进阶应用技巧。内容包括:通过Docket配置实现多业
原创 精选 2月前
432阅读
pom <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <versi
原创 2021-06-06 08:53:56
669阅读
springboot集成最新版的swagger报错:org.springframework.context.ApplicationContextException:Failedtostartbean'documentationPluginsBootstrapper';nestedexceptionisjava.lang.NullPointerException...Causedby:java.l
原创 2023-02-17 09:12:25
1104阅读
在使用thymeleaf时,swagger2可以正常使用,将thymeleaf改为vue之后,swagger2页面报错 原因:跨域配置类集成了WebMvcConfigurationSupport,则在配置文件中配置的相关内容会失效,需要重新指定静态资源 解决办法:在继承了WebMvcConfigur ...
转载 2021-08-09 17:14:00
1113阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5