대시보드 조회시 로그 누적 오류 수정.
parent
16b7570b56
commit
1251c24cdc
|
|
@ -40,6 +40,9 @@ public class FaispInterceptor implements HandlerInterceptor {
|
||||||
@Override
|
@Override
|
||||||
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
|
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
|
||||||
//페이지 렌더링 후 실행.
|
//페이지 렌더링 후 실행.
|
||||||
|
if(request.getParameter("dashboardFlag").equals("true")){
|
||||||
|
// 대시보드 ajax 조회 로그 저장시 키 중첩으로 오류 발생.
|
||||||
|
// 대시보드 ajax 조회는 로그를 쌓지 않음.
|
||||||
UserRequestLog log = new UserRequestLog();
|
UserRequestLog log = new UserRequestLog();
|
||||||
log.setContactIp(Utils.getClientIP(request));
|
log.setContactIp(Utils.getClientIP(request));
|
||||||
log.setRequestUrl(request.getRequestURI());
|
log.setRequestUrl(request.getRequestURI());
|
||||||
|
|
@ -51,3 +54,4 @@ public class FaispInterceptor implements HandlerInterceptor {
|
||||||
userLogService.saveRequestLog(log);
|
userLogService.saveRequestLog(log);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -82,9 +82,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</th:block>
|
</th:block>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-bell-fill" viewBox="0 0 16 16" th:id="${#lists.isEmpty(alarmList)?'':'bellIcon'}">
|
<i class="bi bi-bell-fill" th:id="${#lists.isEmpty(alarmList)?'':'bellIcon'}"></i>
|
||||||
<path d="M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zm.995-14.901a1 1 0 1 0-1.99 0A5.002 5.002 0 0 0 3 6c0 1.098-.5 6-2 7h14c-1.5-1-2-5.902-2-7 0-2.42-1.72-4.44-4.005-4.901z"/>
|
|
||||||
</svg>
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue