现在远程调用模块中导入feign依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency>
1.提供远程调用的接口
2.在对对应的微服务模块下,实现相应的接口
这样就可以在其他微服务模块调用leadnews-schedule模块中的接口
现在远程调用模块中导入feign依赖
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency>
1.提供远程调用的接口
2.在对对应的微服务模块下,实现相应的接口
这样就可以在其他微服务模块调用leadnews-schedule模块中的接口