Describe the bug My rest interface is automatically generated with basePath "/" this results in a @RequestMapping(value = ""). When my spring boot application starts the bean creation fails because of a nullpointer exception:
Caused by: java.lang.NullPointerException: null at org.springframework.cloud.openfeign.support.SpringMvcContract.processAnnotationOnClass(SpringMvcContract.java:179) ~[spring-cloud-openfeign-core-3.0.0.jar:3.0.0]
It seems that the processAnnotationOnClass function can not handle empty paths
Comment From: OlgaMaciaszek
Please provide a minimal, complete, verifiable example that reproduces the issue.
Comment From: florianmack
You just need a RestController with the annotation in the title and a feignClient of this restcontroller. Wehn spring boot starts up the error will occure. I'll provide an example when I have time but let me know if you can not reproduce it
Comment From: OlgaMaciaszek
Can your please provide that Rest Controller sample code?
Comment From: spring-cloud-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-cloud-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.