일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Get
- 자바
- C++
- 이코테
- 테코테코
- SW
- java
- maeil-mail
- react-router
- programmers
- react
- axios
- 항해플러스
- react-redux
- 리액트
- 코딩테스트합격자되기
- JavaScript
- json-server
- redux
- 매일메일
- Python
- useDispatch
- createSlice
- 항해99
- 알고리즘
- 프로그래머스
- redux-saga
- Algorithm
- sw expert academy
- redux-toolkit
- Today
- Total
목록전체 글 (320)
Binary Journey
orElseGet 에 이어 orElseThrow 를 소개한다. 내가 쓰임에 맞게 사용한지는 모르겠지만 일단 설명은 해보겠다. (컨펌 전임) 나의 이전 코드는 이렇다. // ServiceImpl @Transactional @Override public Entity updateEntity(Entity updateEntity) { Optional optEntity = entityRepository.findById(updateEntity.getEntityId()); if(optEntity.isEmpty()) { return null; } updateEntity.setBlahBlah(something); return entityRepository.save(updateEntity); } 이렇게 되면 그냥 NullP..
Java로 백엔드를 개발하는 중에 Optional을 쓴다면 아래와 같이 많이들 썼을 것이다. // ServiceImpl @Override public Entity findOneEntity(Long entityId) { Optional optEntity = entityRepository.findById(entityId); Entity entity = new Entity(); if(optEntity.isPresent()) { entity = optEntity.get(); } return entity; } 오늘 이걸 두 문장으로 끝내버리는 Optional 함수 orElseGet 을 알아냈다. orElseGet은 찾아온 값이 null 이 아닐 경우에만 값을 get 해준다. 위와 아래 코드에서 의도된 return..
목차로 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD] create-board-tutorial * 인용 시 출처 같이 기재부탁드립니다. code: github.com/jwlee-lnd/react-create-board jwlee-lnd/react-create-board Description(korean) : https://binaryjourney.tistory.com/pages/ReactCRUD-create-board-.. binaryjourney.tistory.com 렌더링 최적화를 위해 useState로 사용했던 const [TitleValue, setTitleValue] = useState("") ..

목차 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD] create-board-tutorial * 인용 시 출처 같이 기재부탁드립니다. code: github.com/jwlee-lnd/react-create-board jwlee-lnd/react-create-board Description(korean) : https://binaryjourney.tistory.com/pages/ReactCRUD-create-board-.. binaryjourney.tistory.com Hi Everybody 안녕 Hola! 오랜만의 포스팅이다. 지난주부터 개발 들어가고 2주를 바삐 보냈다. react는 공부할수록 새롭다...
오늘 만난 이슈인데 나같이 몇 달 안된 개발자는 백엔드에 관한 지식이 별로 없어서 겪었지만 다른 사람들은 자주 못볼 이슈일 수도 있다. 엔티티에는 데이터가 insert 될 때 시간을 자동으로 찍어주는 @CreatedDate 어노테이션이 붙은 Date type 필드가 있었다. 테이블에 insert 도중 계속 해당 필드 값이 'cannot be null' 이어야 한다며 에러 메시지가 나타났다. datetime 'COLUMN_NAME' cannot be null 알고 보니 @EntityListeners(AuditingEntityListener.class) 내 엔티티에만 위 어노테이션이 빠져서 계속 오류가 났던 것이다. 내가 참고한 사이트는 아래와 같다. stackoverflow.com/questions/509..

이전글: 2020/11/04 - [React] - [React][CRUD] 간단한 게시판 페이지 만들기 - 17.(1) 게시판 목록에 댓글 개수 띄우기, redux-saga, axios [React][CRUD] 간단한 게시판 페이지 만들기 - 17.(1) 게시판 목록에 댓글 개수 띄우기, redux-saga, axios 목차 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD] create-board-tutorial code: github.com/jwlee-lnd/react-create-board jwlee-lnd/react-create-board Descrip.. binaryjourney.tistory.co..

이전글: 2020/11/04 - [React] - [React][CRUD] 간단한 게시판 페이지 만들어보기 - 16. 댓글 삭제하기, useDispatch, axios, redux-saga, redux-toolkit [React][CRUD] 리액트로 간단한 게시판 페이지 만들어보기 - 16. 댓글 삭제하기, useDispatch, axios, redux-sa [React][CRUD] 간단한 게시판 페이지 만들어보기 - 15. json-server에서 foreign key처럼 게시글 ID로 댓글 리 목차 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD].. binaryjourney.tistory.com 목차..

[React][CRUD] 간단한 게시판 페이지 만들어보기 - 15. json-server에서 foreign key처럼 게시글 ID로 댓글 리 목차 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD] create-board-tutorial code: github.com/jwlee-lnd/react-create-board jwlee-lnd/react-create-board Descrip.. binaryjourney.tistory.com 목차 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD] create-board..

이전글: 2020/11/03 - [React] - [React][CRUD] 간단한 게시판 페이지 만들어보기 - 14. 댓글 달기(우선 댓글 저장부터), redux-toolkit, redux-saga, redux, reducer, useState, useDispatch, json-server, axios [React][CRUD] 간단한 게시판 페이지 만들어보기 - 14. 댓글 달기(우선 댓글 저장부터), redux-toolkit, redu 목차 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD] create-board-tutorial code: github.com/jwlee-lnd/react-create-bo..

목차 돌아가기: binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial [React][CRUD] create-board-tutorial code: github.com/jwlee-lnd/react-create-board jwlee-lnd/react-create-board Description(korean) : https://binaryjourney.tistory.com/pages/ReactCRUD-create-board-tutorial - jwlee-lnd/react-create-boar.. binaryjourney.tistory.com 퇴근 전까지 진도 나갈 수 있을지는 모르겠으나 일단 도전해보겠다. 나는 화면부터 만들었다. /src/compon..