此种注册方式,直接配置server地址,适用于server地址固定的场景。 相关配置可如下:
spring.agg.registry.registryType=direct spring.agg.registry.direct.addressesForClient=127.0.0.1:2332 spring.agg.registry.direct.addressesForDashboard=127.0.0.1:12332