• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

오류 질문 드립니다

21.06.22 13:48 작성 조회수 623

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>

여기를 주석치면 정상동작 하고 아니면 오류가 나는데 어느쪽 문제일까요 ?

답변 2

·

답변을 작성해보세요.

0

안녕하세요. 민규님

OrderItem.getOrderPrice() 메서드가 있는지 확인해보시겠어요?

0

박민규님의 프로필

박민규

질문자

2021.06.22

보면 디비에도 잘 들어가고 빠지고 하는데 출력이 안되는 이유가 뭘까요