[Daily Report] 22.03.17 - Berti 구현 완료
Memo
Progress 정리
Bertie
l Spring에서 http request 만들기
- header 만들기
HttpHeaders
- Http request 만들기
HttpEntity
- request 보내기
restTemplate
- response 받기
ResponseEntity
Java
l “”.isEmpty()
- true
New
Spring
l @TestPropertySource
- [위치] Test class 위에 사용
- [정의] 테스트시 사용할 properties를 설정
- [예시] @TestPropertySource(“classpath:
application_test.properties”)
- [용도] DB에 데이터가 남아 테스트가 실패하여 사용
Git
l local to remote
- [목적] local에서 작업하던 내용을 새로운 remote repository에 저장
- [방법1] local 디렉토리에서 add/commit
- [방법2] remote repository 생성
- [방법3] git remote add $REMOTE_URL
- [방법4] git remote –v (verify)
- [방법5] git push origin main
- [주의] repository 생성시 readme 생성X
Things to know
탬플릿 패턴
프로토타입 패턴
페이징(Pagination)