Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- secondaryindex
- awscli
- markerinterface
- 도메인
- AWS
- 다이나모디비
- 자바스프링
- 개발
- awscloud
- IdClass
- Java
- MockMvc
- annotation
- filterexpression
- 스프링테스트
- 스프링
- testresttemplate
- 로드밸런서
- 테스트코드
- 자바
- javaspring
- EmbeddedId
- Springsecurity
- 오류
- query
- Spring
- DynamoDB
- compositekey
- partiql
- Route53
Archives
- Today
- Total
목록resttemplate (1)
아장아장 개발 일기
https://api.odcloud.kr/api/nts-businessman/v1/status 위의 주소를 호출하면 특정 사업자등록번호의 상태값이 리턴된다. 그런데 막상 호출하면 계속 DATA_MALFORMED 혹은 BAD_JSON 오류가 발생했다. (RestTemplate 사용) 테스트 소스를 작성해 호출해 testRestTemplate으로 호출해보았는데, 잘된다 …?! 흠 … 🤔 왠지 RestTemplate과 testRestTemplate간의 차이를 확인하면 오류의 원인을 찾을 수 있을 것 같아, testRestTemplate의 document를 읽던중…! TestRestTemplate의 경우 Basic authentication headers를 선택적으로 가질 수 있다고 나와있는데에서 힌트를 얻었다..
개발/Spring
2023. 1. 16. 10:10