![[SpringBoot/Thymeleaf] Exception evaluating SpringEL expression EL1007E: Property or field 'id' cannot be found on null](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FcEywLP%2FbtsglOpLjdr%2FAAAAAAAAAAAAAAAAAAAAAOBpYFqp7hq4Tzlo8WlLrYPJnnblfnVqrBBDbV583ibu%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3D5Yy8nPfXMo8vqsu%252FM3R8bycgflI%253D)
[SpringBoot/Thymeleaf] Exception evaluating SpringEL expression EL1007E: Property or field 'id' cannot be found on nullTech/트러블슈팅2023. 5. 20. 06:42
Table of Contents
728x90
728x90
에러 메세지
Exception evaluating SpringEL expression EL1007E: Property or field 'id' cannot be found on null
에러 원인
DTO객체를 리턴받아 th:value="${dto.id}"로 주었는데, null을 받아와서 에러 발생
해결
th:value="${dto?.id}
728x90
300x250
@mag1c :: 개발잘하고싶다
diehreo@gmail.com
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!