springcloud 调用 interface问题

shengxue0569 2016-11-16 04:34:46
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层的调用
...全文
376 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xuanfengshizi 2017-09-13
  • 打赏
  • 举报
回复
fegin 的 requestmethod.get 不支持 自动注解 参数
shengxue0569 2016-11-16
  • 打赏
  • 举报
回复
各位springcloud大神帮忙看下,先谢谢

67,549

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧