照着老师代码打的结果出现Type mismatch: cannot convert from ServiceRegistryBuilder to ServiceRegistry错误
为什么我这段代码ServiceRegistry sr = new ServiceRegistryBuilder().applySettings(config.getProperties()).buildServiceRegistry();提示线面的错误
Type mismatch: cannot convert from ServiceRegistryBuilder to ServiceRegistry