
Query Parameters Path Variable이 아닌 다른 함수 매개변수를 선언하면, 쿼리 매개변수로 자동 해석됩니다. Query Parameter란 URL에서 ? 후에 나오는 값을 말합니다. &로 구분되는 키-값 쌍의 집합 www.exmaple.com?size=10&page=1 size : 10/ page : 1 값입니다. # 임시 데이터 mock_items_db = [ {"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"} ] @app.get("/items") async def read_items(skip: int = 0, limit: int = 10): return mock_items_db[skip : skip + limit] P..

개발 하던 중 택배추적 API를 서버에서 호출하여 처리하는 로직을 구현하게되었습니다. RestTemplate으로 개발 중 알게된 내용을 정리하여 공유해보겠습니다. 더 좋은 방법이나 이상한 점이 있다면 댓글로 알려주시면 감사하겠습니다. Examples getForEntity() String baseUrl = "localhost:8088/api/v1/test"; RestTemplate restTemplate = new RestTemplate(); ResponseEntity response = restTemplate.getForEntity(baseUrl, String.class); getForEntity를 사용하면 위와같이 ResponseEntity 객체를 return 받을 수 있습니다. getForObjec..
- Total
- Today
- Yesterday
- 자바
- ubuntu
- Security
- API
- springsecurity
- @formula
- 스프링
- FastAPI
- Spring
- spring web
- booleanExpression
- like절
- 스프링시큐리티
- ControllerAdvice
- paawordencoder
- 스프링부트 시작하기
- boot
- ResourceHttpReqeustHandler
- mapstruct
- QueryDSL
- howtoinstallnginx
- 유사결과
- 웹서비스
- Java
- 개발
- Python
- springboot
- JPA
- 스프링부트
- java11
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |