AI 시대, 코드 품질과 SW공급망의 새로운 기준(Sonar & JFrog)

안녕하세요. Sonar & JFrog 조인트 세미나 개최합니다. 좌석이 한정되어 있으니, 서둘러 등록하세요.
2026.09.17 (목) 13:00 코엑스 300호


이 문서는 SonarQube에서 커스텀 에러 페이지 설정에 대한 가이드를 공유하기 위해 작성되었다. 


먼저 다음 경로의 web.xml 파일에 Edit 모드로 Open 한다.

<install-directory>/web/WEB-INF/web.xml


다음과 같은 코드를 <web-app></web-app> 사이에 추가한다. 

<web-app>
.
.
  <error-page>
    <error-code>400</error-code>      
    <location>/error.html</location>
  </error-page> 
  <error-page>
    <error-code>401</error-code>      
    <location>/error.html</location>
  </error-page>
  <error-page>
    <error-code>402</error-code>
    <location>/error.html</location>
  </error-page>
  <error-page>
    <error-code>403</error-code>
    <location>/error.html</location>
  </error-page>
  <error-page>
    <error-code>404</error-code>
    <location>/error.html</location>
  </error-page>
  <error-page>
    <error-code>405</error-code>
    <location>/error.html</location>
  </error-page> 
   <error-page>
    <error-code>500</error-code>
    <location>/error.html</location>
  </error-page> 
</web-app>



다음 경로에 error.html 에러 페이지를 생성한다.

<install-directory>/web/error.html
error.html
<html>
<head>
</head>
<body>
    <header>
        <article>
            <h1>Error</h1>
        </article>
    </header>
</body>
</html>
  • 레이블 없음