반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- memory변수명 변경
- spring MVC
- springSecurityFilterChain 오류
- MVC
- @Controller
- 구글 보안 api 활용
- .orelseThrow
- 신문법 abap
- for all entries in
- value base corresponding
- abap memory
- Testcode
- n+1
- BindingResult
- sap memory
- spring
- mapping corresponding
- Validation
- optional
- controller
- abap면접
- abap
- jpa
- abap value in field Data Class error
- 김영한
- new syntax
- application-properties
- SAP
- SpringMVC
- memory 정리
Archives
- Today
- Total
목록optional (2)
SAP공장
JPA Service 계층 오류 (Optional)
public interface MemberRepository extends JpaRepository { Optional findByEmail(String email); 다음과 같이 만들고 public Long addCart(CartItemDto cartItemDto, String email){ Item item = itemRepository.findById(cartItemDto.getItemId()).orElseThrow(EntityNotFoundException::new); Member member = memberRepository.findByEmail(email); 컴파일 오류발생 핵심은 Optional 을 사용했으면 .orElseThrow를 통해 Service를 날려 줘야 했던것! .orElseTh..
[WEB]오류들/inteilij-git오류
2022. 5. 22. 17:12