인프런 커뮤니티 질문&답변
오류 질문 드립니다
작성
·
1.1K
0
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/order/orderList.html]")] with root cause
Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'orderPrice' cannot be found on object of type 'jpabook.jpashop.domain.OrderItem' - maybe not public or not valid?
이런 오류가 나오고 뷰 화면에서
<td th:text="${item.orderItems[0].orderPrice}"></td>
여기를 주석치면 정상동작 하고 아니면 오류가 나는데 어느쪽 문제일까요 ?
퀴즈
회원 가입 시 화면 입력 데이터를 엔티티 객체 대신 별도의 Form 객체로 받는 주된 이유는 무엇일까요?
데이터베이스 성능을 최적화하기 위해서
화면 종속적인 데이터나 유효성 검증 로직을 분리하기 위해서
JPA 영속성 컨텍스트와 직접적인 관계를 맺기 위해서
코드의 자동 생성 기능을 활용하기 위해서





