@ -28,7 +28,7 @@ public class TutuDiscoveryProperties {
private boolean secure = false;
@PostConstruct
public void init() throws Exception {
public void init() {
if (!StringUtils.hasLength(ip)) {
//获取服务IP地址
ip = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress();
@ -19,6 +19,7 @@ public class TutuAutoServiceRegistration extends AbstractAutoServiceRegistration
this.tutuRegistration = tutuRegistration;
}
@SuppressWarnings("deprecation")
@Override
protected Registration getRegistration() {
if (tutuRegistration.getPort() < 0) {