1. 程式人生 > >spring cloud feign:Caused by: java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0

spring cloud feign:Caused by: java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0

use except app caused ise als stp lstat name

報錯之前:

@RequestMapping(value = "hi", method = RequestMethod.GET)
String hiService(@RequestParam String name);

修改之後:
@RequestMapping(value = "hi", method = RequestMethod.GET)
String hiService(@RequestParam(name = "name") String name);

問題解決

spring cloud feign:Caused by: java.lang.IllegalStateException: RequestParam.value() was empty on parameter 0