반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- redis
- Airflow
- KAFKA
- spring boot
- Redis Sentinel
- RabbitMQ
- coalesce
- Docker Compose
- spring cloud
- vue.js
- spring boot redis
- grafana
- JPA
- WebLogic
- Netty
- argo cd
- Spring Open Feign
- Hibernate
- mybatis
- cassandra
- docker compose mysql
- netflix oss
- QueryDSL
- MySQL
- Selenium
- ChannelPipeline
- docker-compose
- weblogic 10
- docker
- jmeter
Archives
- Today
- Total
IT.FARMER
Spring RestTemplate / Connecter 예제 본문
반응형
RestTemplate 사용시 고려해봐야할점.
성공 결과에 대한 response result Class에 대하여 제네릭<T>을 사용한다.
성공인 경우는 이에대한 Class로 언마샬링해주지만, 실패인경우 잘못된 설계가 있으면 Unmashalling 시에 오류가 발생하는것을 볼수있을것이다.
이에대해 RestTemplate 설계시 요청/응답 처리에 대한 프로토콜 구조를 잡고 개발해야 할것이다.
* 예제
반응형
'Spring' 카테고리의 다른 글
QueryDSL paging (JPAQuery / Hibernate) (0) | 2016.01.17 |
---|---|
Junit MvcMock , Transaction rollback (0) | 2016.01.17 |
Junit Test [A ServletContext is required to configure default servlet handling] (0) | 2015.11.02 |
Spring RestTemplate Sample (0) | 2015.09.25 |
대용량 페이징 기법 (0) | 2014.08.07 |