文件名称:springCloud-ribbon-turbine:Ribbon轮询
文件大小:393KB
文件格式:ZIP
更新时间:2024-06-02 22:37:06
Java
feignClient中配置ribbon和hytrix 1.使用@FeignClient注解发现服务 服务提供者的controller: @RestController public class StudentController { @Autowired private StudentService studentService; @GetMapping("/getAll/{id}") public Student getAll(@PathVariable("id")Integer id){ System.out.println("stu-provide:localhost:5865==>消费者查询学生时间:"+new Date().toLocaleString()); Student stu = studentService.