使用Feign远程调用时出现一个异常
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.yh.manage.course.feign.CmsPageClient': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: PathVariable annotation was empty on param 0.
报错原因:
@PathVariable注解为空
解决方法:
在@PathVariable中添加Value