摘要:
两个服务间方法调用,在controller类中使用@RestController注解, 在实现类中使用rest远程调用, @Autowired private RestTemplate restTemplate; restTemplate.getForObject("http://service-l 阅读全文
摘要:
一、Eureka注册发现服务器 1、eureka:做服务的注册与发现 ,在springboot启动类中加 @EnableEurekaServer注解,作为eureka服务器, application.yml配置: server: port: 8888eureka: instance: hostnam 阅读全文