diff --git a/src/main/java/nlib/security/SpringSecurityConfig.java b/src/main/java/nlib/security/SpringSecurityConfig.java index d0d89782..0b6cd329 100644 --- a/src/main/java/nlib/security/SpringSecurityConfig.java +++ b/src/main/java/nlib/security/SpringSecurityConfig.java @@ -63,6 +63,7 @@ public class SpringSecurityConfig extends WebSecurityConfigurerAdapter { .antMatchers("/js/**") .antMatchers("/temp/**") .antMatchers("/favicon/**") + .antMatchers("/html/**") ; } diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index a2bb363e..04a1d060 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -81,15 +81,15 @@ java.lang.Throwable - /common/error.jsp + /common/error-throw.jsp 404 - /common/error.jsp + /common/error404.jsp 500 - /common/error.jsp + /common/error500.jsp diff --git a/src/main/webapp/common/error-throw.jsp b/src/main/webapp/common/error-throw.jsp new file mode 100644 index 00000000..ef111f55 --- /dev/null +++ b/src/main/webapp/common/error-throw.jsp @@ -0,0 +1,24 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<% +String councilCd = (String)session.getAttribute("councilCd"); +String councilNm = (String)session.getAttribute("councilNm"); +%> + +
+
+
+

500 ERROR : Service Error

+

죄송합니다. 현재 서비스가 원활하지 않습니다.

+

에러 아이콘

+
+
+

서비스 이용에 불편을 드려 죄송합니다.
예상치못한 시스템 오류가 발생하였습니다.
시스템 관리자에게 문의해 주시거나 잠시 후 다시 시도해주세요. +

+ +
+
+
diff --git a/src/main/webapp/common/error.jsp b/src/main/webapp/common/error.jsp deleted file mode 100644 index 13f41c96..00000000 --- a/src/main/webapp/common/error.jsp +++ /dev/null @@ -1,33 +0,0 @@ -<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> -<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> - - - - - -NLIB - - - - - - - -
- - - -
- Error -  
- status_code = <%=request.getAttribute("javax.servlet.error.status_code") %>
- exception_type = <%=request.getAttribute("javax.servlet.error.exception_type") %>
- message = <%=request.getAttribute("javax.servlet.error.message") %>
- request_uri = <%=request.getAttribute("javax.servlet.error.request_uri") %>
- exception = <%=request.getAttribute("javax.servlet.error.exception") %>
- servlet_name = <%=request.getAttribute("javax.servlet.error.servlet_name") %>
-
-
- - \ No newline at end of file diff --git a/src/main/webapp/common/error404.jsp b/src/main/webapp/common/error404.jsp new file mode 100644 index 00000000..00f312bb --- /dev/null +++ b/src/main/webapp/common/error404.jsp @@ -0,0 +1,44 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<% +String councilCd = (String)session.getAttribute("councilCd"); +String councilNm = (String)session.getAttribute("councilNm"); +%> + + + + + + + +소장자료관 + + + + + + + + + +
+
+
+

문화원로고<%=councilNm %>소장자료관

+

404 ERROR : Page not found

+

죄송합니다. 요청하신 페이지를 찾을 수 없습니다.

+

에러 아이콘

+
+
+

방문하시려고 하는 페이지의 주소가 잘못 입력되었거나,
페이지의 주소가 변경 또는 삭제되어 찾을 수 없습니다.

+ +
+
+
+ + + \ No newline at end of file diff --git a/src/main/webapp/common/error500.jsp b/src/main/webapp/common/error500.jsp new file mode 100644 index 00000000..8e52ecc1 --- /dev/null +++ b/src/main/webapp/common/error500.jsp @@ -0,0 +1,44 @@ +<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> +<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> +<% +String councilCd = (String)session.getAttribute("councilCd"); +String councilNm = (String)session.getAttribute("councilNm"); +%> + + + + + + + +소장자료관 + + + + + + + + + +
+
+
+

문화원로고<%=councilNm %>소장자료관

+

500 ERROR : Service Error

+

죄송합니다. 현재 서비스가 원활하지 않습니다.

+

에러 아이콘

+
+
+

서비스 이용에 불편을 드려 죄송합니다.
예상치못한 시스템 오류가 발생하였습니다.
시스템 관리자에게 문의해 주시거나 잠시 후 다시 시도해주세요. +

+ +
+
+
+ + + \ No newline at end of file