信盈達盈享課堂-硬件設(shè)計實訓營-數(shù)字電路基礎(chǔ)入門
pringBootApplication@EnableDiscoveryClient@RestControllerpublic class HelloServerApplication {
? ?@Autowired
? ?DiscoveryClient client;
? ?@RequestMapping("/")
? ?public String hello() {
? ? ? ?List<ServiceInstance> instances = client.getInstances("HelloServer");
? ? ? ?ServiceInstance selectedInstance = instances
標簽: