![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swagger2
耨耨菲
这个作者很懒,什么都没留下…
展开
-
swagger2.7.0异常 (shiro+swagger)
界面空白,如图所示:原因:shiro配置swagger放行的顺序造成:原配置: // swagger放行 filterMap.put("/swagger-ui.html", "anon"); filterMap.put("/swagger-resources", "anon"); filterMap.put("/v2/api-docs", "anon"); filterMap.put("/webjars/sp原创 2020-09-16 09:40:10 · 257 阅读 · 0 评论 -
swagger2.9.2 文件及多文件上传的类型定义
@ApiOperation(value = "上传", notes = "上传")@ApiImplicitParam(paramType = "form", name = "file", value = "文件对象", required = true, dataType = "__file")public void insert(@RequestParam("file") MultipartFile file) throws Exception { ... }多文件上传:.原创 2020-06-19 10:15:25 · 6253 阅读 · 5 评论 -
swagger2获取图形验证码异常406
解决方案:由于guava的兼容性导致的问题,引入旧 <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>25...原创 2020-04-07 14:18:33 · 2209 阅读 · 0 评论 -
SpringBoot项目整合2.9.2版本的Swagger异常处理(java.lang.NumberFormatException: For input string: "")
项目启动异常代码2020-04-07 13:16:01.833 WARN 2356 --- [nio-8008-exec-8] i.s.m.p.AbstractSerializableParameter : Illegal DefaultValue null for parameter type integerjava.lang.NumberFormatException: Fo...原创 2020-04-07 13:28:46 · 570 阅读 · 0 评论