问题描述:在项目启动的时候出现下述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相关推荐

  1. Unable to interpret the implicit parameter configuration with dataType

    背景 在启动项目的时候,发现日志打印了Unable to interpret the implicit parameter configuration with dataType这个异常警告信息. & ...

  2. spring boot应用启动原理分析

    spring boot quick start 在spring boot 里,很吸引人的一个特性是可以直接把应用打包成为一个jar/war,然后这个jar/war是可以直接启动的,不需要另外配置一个W ...

  3. 记一次 Spring Boot 项目启动卡住问题排查记录

    点击上方蓝色"程序猿DD",选择"设为星标" 回复"资源"获取独家整理的学习资料! 作者 | 陈凯玲 来源 | https://url.cn ...

  4. Spring Boot定制启动图案

    转载自 Spring Boot定制启动图案 启动图案 Spring Boot在启动的时候会显示一个默认的Spring的图案,对应的类为SpringBootBanner. .   ____       ...

  5. 【spring boot】启动类启动 错误: 找不到或无法加载主类 com.codingapi.tm.TxManagerApplication 的解决方案

    [spring boot]启动类启动 错误: 找不到或无法加载主类 com.codingapi.tm.TxManagerApplication 的解决方案 导入的一个外部的spring boot项目, ...

  6. Spring Boot————应用启动时的监听机制测试

    引言 本文承接前面的<Spring Boot----Spring Boot启动流程分析>,主要测试一下ApplicationContextInitializer.SpringApplica ...

  7. Spring Boot项目启动的几种方式

    Spring Boot项目启动的几种方式 方式一:右击启动或者点击intellij右上角的启动按钮 我们访问下浏览器看一下效果 方式二:利用maven启动 我们先进入到项目文件下,然后执行命令   m ...

  8. Spring Boot(18)---启动原理解析

    Spring Boot(18)---启动原理解析 前言 前面几章我们见识了SpringBoot为我们做的自动配置,确实方便快捷,但是对于新手来说,如果不大懂SpringBoot内部启动原理,以后难免会 ...

  9. Spring Boot 设置启动时banner

    Spring Boot项目再启动的时候默认会在控制台输出一个字符banner图案,如下图: 我们可以通过下面的方法关闭启动时显示字符banner图案: 关闭banner方法一: public stat ...

最新文章

  1. 热传的职场异性相处PPT!网友评:你倒是给我分配个女同事啊!
  2. Android中asset和raw的区别
  3. 某县百姓百事110便民服务管理系统(1)——项目总结
  4. xstream不映射字段_Mybatis_day03:输入映射和输出映射
  5. 如何在Raspberry Pi上设置两因素身份验证
  6. leetcode45 --- jump
  7. v-for和v-if一起使用的坑。。。
  8. 怎么在堆叠柱状图中体现百分比_微生物门类堆叠柱状图一文解决
  9. 【渝粤题库】陕西师范大学800008 综合自然地理
  10. 【趣文翻译】如何用各种编程语言杀死一条龙,PHP大亮 [转]
  11. 对应node版本_骚操作,Node.js接入Paddle Lite,网站也能AI推理
  12. MFC用户界面设计 一
  13. 《东周列国志》第五十三回 楚庄王纳谏复陈 晋景公出师救郑
  14. Excel在统计分析中的应用—第十章—方差分析-方差分析表
  15. (10.1.6)极简主义
  16. R语言技巧:读取excel文件
  17. 不开方求两点距离的算法
  18. 会议室预定小程序[叮当会议]
  19. Javaweb回炉简要学习笔记
  20. UV滚动+自定义光线高光+LightMap阴影贴图+法线贴图效果shader

热门文章

  1. Java+selenium之WebDriver的抛出异常分析(七)
  2. [Asp.net]Uploadify上传大文件,Http error 500 解决方案
  3. Ubuntu 16.04配置CUDA 9.0+cudnn 7.0以及解决Nvidia显卡导致黑屏问题
  4. TKDE2022 | 最新深度学习推荐系统综述:从协同过滤到信息增强的推荐系统
  5. 【报告分享】清华大学-2019人工智能发展报告.pdf(附394页报告下载链接)
  6. 模型增强 | 利用 NLG 增强 QA 任务性能
  7. Nvidia League Player:来呀比到天荒地老
  8. ps2019布尔运算快捷键_超实用:换个角度教你快速理解PS CS6布尔运算
  9. 上海工程技术大学c语言试卷,上海工程技术大学2009-2010C语言试卷A.doc
  10. 读书笔记——计算机网络CN