반응형
250x250
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 |
Tags
- codebuild
- 도커
- aws
- chart.js
- PostgreSQL
- codedeploy error
- java bigdecimal
- aws cicd
- redis
- codedeploy
- chartjs
- AWS CI/CD 구축하기
- docker
- JavaScript
- bootstrap
- Spring Error
- Python
- kubeflow
- Flux
- node
- or some instances in your deployment group are experiencing problems.
- IntelliJ
- VPN
- Jenkins
- Kafka
- SQL
- codepipeline
- COALESCE
- Spring
- Airflow
Archives
- Today
- Total
목록java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true) (1)
Small Asteroid Blog
java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true)
POST 방식으로 REST API 호출시에 발생하는 에러이다. 아래 내용에서 con.setDoOutput(true) 로 설정해주면 된다. HttpURLConnection con = (HttpURLConnection)obj.openConnection(); con.setRequestMethod("POST"); con.setDoOutput(true); // 이 항목을 추가
백엔드/Spring
2021. 10. 19. 15:18