index 템플릿 null 안전 처리
@f676717000f460989d34754fcbd1ea30ab0d98ee
--- CHANGELOG_BOOT_JPA.md
+++ CHANGELOG_BOOT_JPA.md
... | ... | @@ -430,3 +430,9 @@ |
| 430 | 430 |
- 스프링 시큐리티 기본 로그인 비활성화 |
| 431 | 431 |
- 커스텀 로그인 페이지(`/uat/uia/egovLoginUsr.do`)로 연결 |
| 432 | 432 |
- CSRF 비활성화 |
| 433 |
+ |
|
| 434 |
+## 추가 변경(24차) |
|
| 435 |
+ |
|
| 436 |
+### 템플릿 오류 방지 |
|
| 437 |
+- `/Users/beom/Documents/intellij/cms/FoxeduBaseCMS/base/src/main/resources/templates/index.html` |
|
| 438 |
+ - `siteInfo`가 null일 때도 렌더링되도록 안전한 표현식 적용 |
--- base/src/main/resources/templates/index.html
+++ base/src/main/resources/templates/index.html
... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 |
<meta http-equiv="Content-Style-Type" content="text/css" /> |
| 8 | 8 |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 9 | 9 |
<title> |
| 10 |
- <span th:text="${siteInfo.siteNm}"></span>
|
|
| 10 |
+ <span th:text="${siteInfo != null ? siteInfo.siteNm : ''}"></span>
|
|
| 11 | 11 |
<th:block> |
| 12 | 12 |
<th:block th:if="${CURR_URL eq '/msi/indvdlInfoPolicy.do'}">> <span th:text="#{etc.link.indvdlInfoPolicy}"></span></th:block>
|
| 13 | 13 |
<th:block th:if="${CURR_URL eq '/msi/useStplat.do'}">> <span th:text="#{etc.link.useStplat}"></span></th:block>
|
... | ... | @@ -27,4 +27,4 @@ |
| 27 | 27 |
</head> |
| 28 | 28 |
<body> |
| 29 | 29 |
</body> |
| 30 |
-</html>(파일 끝에 줄바꿈 문자 없음) |
|
| 30 |
+</html> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?