Required request parameter 'emissionTypeId' for method parameter type Long is not present
时间: 2023-09-25 18:14:25 浏览: 106
回答: 根据您提供的引用内容,问题出现在Controller层的注解使用上。根据\[1\]中的描述,@RequestParam注解不支持POST请求,而您在使用@RequestParam注解时出现了问题。另外,根据\[2\]中的示例,如果您需要接收一个Long类型的参数,可以考虑使用@PathVariable注解或者@RequestBody注解。根据\[3\]中的描述,还需要确认前端请求时参数的编码格式是urlencode还是json编码格式。综上所述,您可以尝试使用@PathVariable注解或者@RequestBody注解来接收Long类型的参数,并确保前端请求时参数的编码格式正确。
#### 引用[.reference_title]
- *1* [Required request parameter ‘xxx‘ for method parameter type xxxx is not present 解决方式](https://blog.csdn.net/m0_49161353/article/details/124156909)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Required request parameter ‘xxxxxx‘ for method parameter type xxxx is not present 解决方式](https://blog.csdn.net/eyouhs/article/details/129674765)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Bad Request: Required request parameter ‘id‘ for method parameter type Long is not present](https://blog.csdn.net/qq_45486709/article/details/123977934)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文