SpringCloud-Feign-@PathVariable
Feign pathvariable annotation was empty on param 0.
when using feign, if the parameter contains
@If the parameter is in the form of pathvariable, the corresponding parameter should be marked with value =, otherwise the IllegalStateException exception will be thrown
as
@GetMapping(value = "/payment/consumer/hystrix/ok/get/{id}")
public String payment_ok(@PathVariable Integer id)
The above code will report feign pathvariable annotation was empty on param 0
@GetMapping(value = "/payment/consumer/hystrix/ok/get/{id}")
public String payment_ok(@PathVariable(value="id") Integer id)
So you can go through
Read More:
- Error pathvariable annotation was empty on param 0 when migrating idea to eclipse
- Integration openfeign failed to start
- The @ Autowired annotation in springboot is invalid in ordinary classes. How to solve and use the null pointer exception java.lang.nullpointerexception
- Error in @ param in idea2017.3.4 / * * / annotation
- Solution to the error of @ resource annotation in eclipse spring
- @Error in restcontroller annotation
- Notes on using Reaver in Kali 2.0
- [Solved] Access /oauth/token in SpringCloud OAuth2 and report server_error
- Svn notes: error reporting in use
- Jsonformat annotation solves the problem of time format in the front end of localdatetime
- Using openfeign to remotely call the startup program to report an error
- [idea] error occurred when using @ data annotation in Lombok: no related get / set method was found
- The solution of notes floating red error in IntelliJ idea
- The solution of using Autowired annotation to report errors in IntelliJ idea
- @Solution to get / set error in eclipse after using data annotation
- Springcloud Feign Upload MultipartFile Error: Current req is not a multipart request Content type not supported
- Android learning notes 03: some problems and solutions in the learning process
- Error: required request body is missing, @ requestbody annotation usage
- ‘dependencies.dependency.version‘ for org.springframework.cloud:spring-cloud-starter-openfeign:jar
- Error type referred to is not an annotation type:RedisCache