@Override public String render(ModelAndView modelAndView) { try { String template = locator.getString(modelAndView.getViewName(), StandardCharsets.UTF_8, null); return renderer.render(template, (Map<String, ?>) modelAndView.getModel()); } catch (IOException e) { throw new IllegalArgumentException(e); } }
public void setUseCache(boolean useCache) { locator.setUseCache(useCache); }
public boolean isUseCache() { return locator.isUseCache(); }