-
Notifications
You must be signed in to change notification settings - Fork 1
TIL 1월 20일
whipbaek edited this page Jan 20, 2023
·
14 revisions
- somthing..
- somthing..
- somthing..
- somthing..
- somthing..
- somthing..
- somthing..
- somthing..
- somthing..
- 팀원들과 스터디 진행
- HttpEntity, ResponseEntity 구조 공부
- Spring Cloud Gateway + Filter (Jwt) 관련 공부
- 죽전역에 조조 칼국수가 있었다. 다음에 가야지 !
- 웹 개발자면, http에 대해서는 빠삭하게 알고 있어야 할 거 같다.
- HttpEntity, ResponseEntity
- 공부 및 테스트 내용 : https://devcamp.notion.site/HttpEntity-ResponseEntity-d9810a92b6474c35b32a38d9a23eedaa
- HttpEntity는 Http response, request 를 나타내는 클래스이다. body와 header로 구성되며 HttpEntity 에서 T는 body부분의 자료형을 명시한다.
- ResponseEntity는 HttpEntity를 상속하는 클래스이며 http 상태코드가 추가된 클래스이다. body, header 는 기본에 상태코드를 사용자가 지정할 수 있다.
- Spring Cloud + JWT
- Spring boot에서는 profile 기능을 활용하여 여러 설정을 자신이 원할 때 바꿔서 설정할 수 있다.
- ex> yml 또는 properties 파일을 여러개 만들어 놓고 네이밍 룰에 의거하여 사용자가 원하는 파일을 프로젝트 빌드시 적용시킬 수 있다는 뜻이다.
- 예로들어 테스트 환경 설정은 h2로 하고, 배포 설정은 mysql로 할 시 파일 두개를 만들어서 상황에 따라 적용시켜주면 간단히 빌드할 수 있다.
- 참고내용 : https://wonit.tistory.com/501
- somthing..
- somthing..
- somthing..