Przeglądaj źródła

유입이력 생성 시 Exception 발생해도 skip 되게 처리

gagamel 4 lat temu
rodzic
commit
119204624f

+ 8 - 4
src/main/java/com/style24/front/support/interceptor/TsfAflinkInterceptor.java

@@ -54,10 +54,14 @@ public class TsfAflinkInterceptor extends HandlerInterceptorAdapter {
 			queryString = "?" + queryString;
 		}
 
-		InflowHst inflow = new InflowHst();
-		inflow.setAfLinkCd(afLinkCd);
-		inflow.setPageUrl(request.getRequestURL() + queryString);
-		commonService.createInflowHistory(inflow);
+		try {
+			InflowHst inflow = new InflowHst();
+			inflow.setAfLinkCd(afLinkCd);
+			inflow.setPageUrl(request.getRequestURL() + queryString);
+			commonService.createInflowHistory(inflow);
+		} catch (Exception e) {
+			// Do nothing
+		}
 
 		return super.preHandle(request, response, handler);
 	}