原因:就是spring的controller上的@RequestMapping的实参和方法里面的形参名字不一致

方法:改成一样就可。

ps.还能用绑定的方法,不建议,因为太麻烦了

@RequestMapping(value = "/findUser/{id}",method = RequestMethod.GET)public R find(@PathVariable("id") @Valid String sssss){}

转载于:https://www.cnblogs.com/ydymz/p/8399604.html

Missing URI template variable 'XXXX' for method parameter of type String相关推荐

  1. 报错, Exception: Missing URI template variable ‘id‘ for method parameter of type Long

    问题: 2021-03-24 17:31:05.391 ERROR 12756 --- [io-12000-exec-2] c.y.w.c.GlobalControllerExceptionHandl ...

  2. SpringBoot:错误Missing URI template variable XX for method parameter of type Integer

    错误: 代 码: 我以为是参数类型问题,尝试body通过json传,还是报错 问题原因在controller层,注解. 想再了解清楚点的可以转这个链接: https://blog.csdn.net/x ...

  3. Required request parameter ‘xxxx‘ for method parameter type Date is present but converted to null

    问题 前端请求字段中含时间戳数据 请求报错如下: [http-nio-9071-exec-2] ERROR c.m.c.s.h.GlobalExceptionHandler - [handleExce ...

  4. SpringBoot: xxxx for method parameter type String is not present]

    对于方法parameter的String类型参数xxxx不存在 首先检查了这个参数xxxx所在代码块. 发现问题是因为session.setAttribute后,没有用request.getSessi ...

  5. springBoot 全局异常处理 报错 : Could not resolve method parameter at index 0 in public .....

    在学习 springboot 的全局异常处理时   ,我写了一个处理异常类 @ControllerAdvice public class ErrorCatchController {@Exceptio ...

  6. MissingServletRequestParameterException: Required request parameter ‘id‘ for method parameter type I

    1.报错信息 1.1idea中报错信息 Resolved [org.springframework.web.bind.MissingServletRequestParameterException: ...

  7. Required request parameter ‘userId‘ for method parameter type String is not present

    postman:发送Http请求 springboot控制台打印Exception:Required request parameter 'userId' for method parameter t ...

  8. ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated问题处理过程

    1,现象是oracle启动报错例如以下: SQL> startup ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cann ...

  9. ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be translated

    standby down了,所以重启报错,ORA-16032: parameter LOG_ARCHIVE_DEST_3 destination string cannot be  translate ...

最新文章

  1. SpockFS —— 基于 HTTP 的文件系统
  2. JBoss日志文件配置
  3. 使用 SQLServer On Linux 作为开发数据库遇到的编码问题
  4. 使用Spring Session和JDBC DataStore进行会话管理
  5. CSS清除默认样式,技术详细介绍
  6. 前端学习(1185):数据响应式
  7. 刚公布完价格就被骂?这款新机有点惨...
  8. postgresql grant权限解释
  9. 安装python3-dev_ubuntu16.04安装python3.7
  10. linux oracle12c rman,12C CDB模式下RMAN备份与恢复
  11. OSChina 周日乱弹 ——朕与先生解战袍,芙蓉帐暖度春宵
  12. 分析即服务(AaaS)到底是什么?终于有人讲明白了
  13. 心中有佛,看谁都是佛;心中有屎,看谁都是屎。
  14. 全年股价暴涨超110% TTD能否杀出巨头们的围墙花园?
  15. 手机做证件照的方法是什么
  16. 地雷復 (易經大意 韓長庚)
  17. matlab小波分析信号消除噪声函数,小波分析的语音信号噪声消除方法
  18. emc整改措施及案例_EMC整改方案
  19. 【音视频】获取桌面程序窗口列表以及桌面、窗口的缩略图(4-4)
  20. python函数ppt_Python自动化操作PPT看这一篇就够了

热门文章

  1. vba里面的日期数据转换异常(Format error)(使用IsDate方法部分解决)
  2. 我从未看过荒原写作背景_您从未听说过的最佳数据科学认证
  3. Spring Boot 最流行的 16 条最佳实践!
  4. 历史上唯独倒闭的两家银行,看看他们是如何破产的
  5. 藉上帝之旨,行时代之命的文学长征
  6. 通过ADO压缩数据库
  7. jq fileupload 设置最大文件大小5m_捷达将发布全新中大型SUV 或命名VS9/车长超5m
  8. 支付宝php异步回调,支付宝支付成功之后异步回调处理
  9. ioc框架 java_从零开始实现一个简易的Java MVC框架(三)--实现IOC
  10. 人工智能泰斗迈克尔·乔丹分享机器学习要义:创新视角,直面挑战