在使用SpringBoot进行通信获取数据时报错java.lang.IllegalStateException: No instances available for localhost 原因是找不到localhost如下图 最后发现访问地址,要使用对应端口的应用服务名称 最后访问获取数据成功