跨服务使用@Echo
#173
Replies: 4 comments 1 reply
-
新服务里面要加 base-api 的依赖, 并确保新服务里面能正常调用 BaseOrgApi#findByIds |
Beta Was this translation helpful? Give feedback.
1 reply
-
手写调用 BaseOrgApi#findByIds |
Beta Was this translation helpful? Give feedback.
0 replies
-
加入以后后,启动时会自动扫描进去。 没进去就说明依赖没加对。 手动能调用这个方法,就说明依赖加对了,strategyMap自然也有了 |
Beta Was this translation helpful? Give feedback.
0 replies
-
还有启动类 加 @EnableFeignClients 注解,并指定正确的 basePackages |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我新服务想用@echo回显base 服务的组织名称,流程是: 我在base里面建一个feign 继承LoadService 然后重写findByIds 我也要在OrgController中写这个方法 然后将方法一直写到BaseOrgManagerImpl这里,然后我在我新服务里字段上@echo(api= base里的feignServer)吗?
->
->
->
->
->
这是一个大概的流程
Beta Was this translation helpful? Give feedback.
All reactions