如图这是代码
ServiceRegistry serviceRegistry=new StandardServiceRegistryBuilder().applySettings(configuration.getProperties()).build();这样写也行
亲,还没写完呢, .build()没写啊