fegin测试时候报错了,不清楚什么原因请大神帮忙看下,和老师敲的代码一样,不知道为什么我的报错了,人家的不报错
cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'consumerfeigncontroller': Unsatisfied dependency expressed through field 'userclient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.haohao.consumer.client.userclient': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: PathVariable annotation was empty on param 0.
2021-06-10 10:59:06.345 INFO 21360 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-06-10 10:59:06.371 INFO 21360 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-06-10 10:59:06.392 ERROR 21360 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'consumerfeigncontroller': Unsatisfied dependency expressed through field 'userclient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.haohao.consumer.client.userclient': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: PathVariable annotation was empty on param 0.
自己的代码:
feigncontroller代码:
application启动代码