今天在调试spring cloud的过程中,在启动了一个eureka server ,一个eureka调用者,一个eureka提供者之后。请求在提供者的方法中处理后一直返回不到调用者,报错:
[Circular view path [refundbbb]: would dispatch back to the current handler URL [/refundbbb] again.
Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)] with root cause
排查了好久,还一直以为是Feign返回的时候是不是也要配置路由。
后来将@Controller改成@RestController就好了。