use of com.jeesuite.gateway.model.BizSystemModule in project jeesuite-libs by vakinge.
the class CurrentSystemHolder method loadLocalRouteModules.
private static void loadLocalRouteModules() {
localModules = new ArrayList<>();
Properties properties = ResourceUtils.getAllProperties("zuul.routes.");
Set<Entry<Object, Object>> entrySet = properties.entrySet();
BizSystemModule module;
for (Entry<Object, Object> entry : entrySet) {
String key = entry.getKey().toString();
if (!key.endsWith(".path"))
continue;
String prefix = key.replace(".path", "");
module = new BizSystemModule();
module.setRouteName(entry.getValue().toString().substring(1).replace("/**", ""));
module.setServiceId(properties.getProperty(prefix + ".serviceId"));
module.setAnonymousUris(properties.getProperty(prefix + ".anonymousUris"));
localModules.add(module);
}
}
Aggregations