메뉴 주입 시 로그 추가

master
mjkhan21 1 year ago
parent d488fbb9d3
commit 9c92c58d05

@ -54,6 +54,7 @@ public class MenuInjector extends RequestInterceptor {
String respType = getRespType(hreq, mav); String respType = getRespType(hreq, mav);
if (!isActive(respType)) return; if (!isActive(respType)) return;
log().debug("Injecting userMenus...");
List<DataObject> menus = menuService.getUserMenus(); List<DataObject> menus = menuService.getUserMenus();
Object resp = respType.startsWith("json") ? menus : toJson(menus); Object resp = respType.startsWith("json") ? menus : toJson(menus);
mav.addObject("userMenus", resp); mav.addObject("userMenus", resp);

Loading…
Cancel
Save