[Thymeleaf]Property or field 'name' cannot be found on null 해결방법
ex) data.category.name
이라는 객체를 부를려고 하는데
category가 nulld이면
Property or field 'name' cannot be found on null
에러가 나온다..
해결할려면...
ex) data.category?.name
'web' 카테고리의 다른 글
[web] html 한글 깨짐현상 해결방법 (0) | 2022.11.08 |
---|---|
[web]아임포트 본인인증서비스 화면 노출 시키는방법 (0) | 2021.02.15 |
[web]locale 나라별 확인 가능한 사이트 (0) | 2020.11.30 |
[web]pagenation 처리하는 방법 (0) | 2020.09.18 |
[html]link show new window방법 (0) | 2020.09.16 |