Spring Boot Swagger3启动出现警告Unable to interpret the implicit parameter configuration with dataType
问题描述:在项目启动的时候出现下述warn(警告):
Unable to interpret the implicit parameter configuration with dataType: , dataTypeClass: class java.lang.Void
解决方法:
这是由于项目中引入了swagger,swagger的依赖为
<dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><version>3.0.0</version>
</dependency>
@PostMapping("/del")
@ApiOperation(value="删除")
@ApiImplicitParam(name = "id", value = "主键ID",required = true)
public void del(@RequestParam String id){return;
}
这段代码写的时候没有任何错误,仅仅会在项目启动的时候,会出现上述警告,解决方法为,在@ApiImplicitParam里面加上dataTypeClass属性
@PostMapping("/del")
@ApiOperation(value="删除")
@ApiImplicitParam(name = "id", value = "主键ID",required = true,dataTypeClass = String.class)
public void del(@RequestParam String id){return;
}
Spring Boot Swagger3启动出现警告Unable to interpret the implicit parameter configuration with dataType相关推荐
- Unable to interpret the implicit parameter configuration with dataType
背景 在启动项目的时候,发现日志打印了Unable to interpret the implicit parameter configuration with dataType这个异常警告信息. & ...
- spring boot应用启动原理分析
spring boot quick start 在spring boot 里,很吸引人的一个特性是可以直接把应用打包成为一个jar/war,然后这个jar/war是可以直接启动的,不需要另外配置一个W ...
- 记一次 Spring Boot 项目启动卡住问题排查记录
点击上方蓝色"程序猿DD",选择"设为星标" 回复"资源"获取独家整理的学习资料! 作者 | 陈凯玲 来源 | https://url.cn ...
- Spring Boot定制启动图案
转载自 Spring Boot定制启动图案 启动图案 Spring Boot在启动的时候会显示一个默认的Spring的图案,对应的类为SpringBootBanner. . ____ ...
- 【spring boot】启动类启动 错误: 找不到或无法加载主类 com.codingapi.tm.TxManagerApplication 的解决方案
[spring boot]启动类启动 错误: 找不到或无法加载主类 com.codingapi.tm.TxManagerApplication 的解决方案 导入的一个外部的spring boot项目, ...
- Spring Boot————应用启动时的监听机制测试
引言 本文承接前面的<Spring Boot----Spring Boot启动流程分析>,主要测试一下ApplicationContextInitializer.SpringApplica ...
- Spring Boot项目启动的几种方式
Spring Boot项目启动的几种方式 方式一:右击启动或者点击intellij右上角的启动按钮 我们访问下浏览器看一下效果 方式二:利用maven启动 我们先进入到项目文件下,然后执行命令 m ...
- Spring Boot(18)---启动原理解析
Spring Boot(18)---启动原理解析 前言 前面几章我们见识了SpringBoot为我们做的自动配置,确实方便快捷,但是对于新手来说,如果不大懂SpringBoot内部启动原理,以后难免会 ...
- Spring Boot 设置启动时banner
Spring Boot项目再启动的时候默认会在控制台输出一个字符banner图案,如下图: 我们可以通过下面的方法关闭启动时显示字符banner图案: 关闭banner方法一: public stat ...
最新文章
- 热传的职场异性相处PPT!网友评:你倒是给我分配个女同事啊!
- Android中asset和raw的区别
- 某县百姓百事110便民服务管理系统(1)——项目总结
- xstream不映射字段_Mybatis_day03:输入映射和输出映射
- 如何在Raspberry Pi上设置两因素身份验证
- leetcode45 --- jump
- v-for和v-if一起使用的坑。。。
- 怎么在堆叠柱状图中体现百分比_微生物门类堆叠柱状图一文解决
- 【渝粤题库】陕西师范大学800008 综合自然地理
- 【趣文翻译】如何用各种编程语言杀死一条龙,PHP大亮 [转]
- 对应node版本_骚操作,Node.js接入Paddle Lite,网站也能AI推理
- MFC用户界面设计 一
- 《东周列国志》第五十三回 楚庄王纳谏复陈 晋景公出师救郑
- Excel在统计分析中的应用—第十章—方差分析-方差分析表
- (10.1.6)极简主义
- R语言技巧:读取excel文件
- 不开方求两点距离的算法
- 会议室预定小程序[叮当会议]
- Javaweb回炉简要学习笔记
- UV滚动+自定义光线高光+LightMap阴影贴图+法线贴图效果shader
热门文章
- Java+selenium之WebDriver的抛出异常分析(七)
- [Asp.net]Uploadify上传大文件,Http error 500 解决方案
- Ubuntu 16.04配置CUDA 9.0+cudnn 7.0以及解决Nvidia显卡导致黑屏问题
- TKDE2022 | 最新深度学习推荐系统综述:从协同过滤到信息增强的推荐系统
- 【报告分享】清华大学-2019人工智能发展报告.pdf(附394页报告下载链接)
- 模型增强 | 利用 NLG 增强 QA 任务性能
- Nvidia League Player:来呀比到天荒地老
- ps2019布尔运算快捷键_超实用:换个角度教你快速理解PS CS6布尔运算
- 上海工程技术大学c语言试卷,上海工程技术大学2009-2010C语言试卷A.doc
- 读书笔记——计算机网络CN