springcloud 调用 interface问题
Description:
Field restfulAPIService in com.pingan.mario.web.ReportController required a bean of type 'com.pingan.mario.service.RestfulAPIService' that could not be found.
Action:
Consider defining a bean of type 'com.pingan.mario.service.RestfulAPIService' in your configuration.
因为没写实现类,所以这个接口报错。
但看到网上spring cloud feign 都是直接写在interface里直接调用

这是在controller层的调用

Field restfulAPIService in com.pingan.mario.web.ReportController required a bean of type 'com.pingan.mario.service.RestfulAPIService' that could not be found.
Action:
Consider defining a bean of type 'com.pingan.mario.service.RestfulAPIService' in your configuration.
因为没写实现类,所以这个接口报错。
但看到网上spring cloud feign 都是直接写在interface里直接调用

这是在controller层的调用

...全文
相关推荐
初学SpringCloud连接Oracle数据库
初学SpringCloud简单配置Oracle数据库,从Oracle数据库中获取数据
糞坑-SpringCloud中使用Feign的坑
NULL 博文链接:https://b-l-east.iteye.com/blog/2373462
SpringCloud重试机制配置详解
本篇文章主要介绍了SpringCloud重试机制配置详解,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
SpringCloud Feign使用指南[源码]
本文详细介绍了SpringCloud中Feign组件的使用,包括环境准备、简单使用、负载均衡配置、熔断器配置、压缩配置和日志配置。文章首先介绍了Feign的基本概念和依赖引入,然后详细讲解了如何通过Feign进行服务调用,包括接口编写、控制器改造和测试。接着,文章介绍了如何通过Ribbon配置负载均衡和超时时间,以及如何通过Hystrix配置熔断器和降级处理。最后,文章还介绍了如何配置请求和响应的压缩功能,以及如何开启Feign的日志功能,以便更好地监控和调试服务调用。
springCloud.docx
这是spring cloud的教程,如果你还不会用springcloud,把这个下载下来学一学就全会了。


