public class DynamicSchemaLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static DynamicSchemaLoader |
INSTANCE |
| Constructor and Description |
|---|
DynamicSchemaLoader() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerSchemas(String schemaLocation)
动态注册指定目录下的schema契约到当前服务
|
void |
registerSchemas(String microserviceName,
String schemaLocation)
动态注册指定目录下的schema契约到指定服务
|
public static final DynamicSchemaLoader INSTANCE
public void registerSchemas(String schemaLocation)
schemaLocation - eg. "classpath*:schemas/*.yaml"Copyright © 2017. All rights reserved.