use of org.nutz.boot.starter.WebServletFace in project nutzboot by nutzam.
the class NutFilterStarter method getInitParameters.
public Map<String, String> getInitParameters() {
Map<String, String> params = new HashMap<>();
params.put("modules", NbMainModule.class.getName());
if (conf.has("nutz.mvc.ignore")) {
params.put("ignore", conf.get("nutz.mvc.ignore"));
}
StringBuilder sb = new StringBuilder();
for (WebServletFace face : appContext.getBeans(WebServletFace.class)) {
sb.append(',').append(face.getPathSpec());
}
params.put("exclusions", conf.get("nutz.mvc.exclusions", "") + sb);
return params;
}
Aggregations