반응형
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
- 도커
- JavaScript
- aws
- Kafka
- codedeploy error
- SQL
- Airflow
- aws cicd
- Jenkins
- AWS CI/CD 구축하기
- or some instances in your deployment group are experiencing problems.
- Python
- redis
- Spring Error
- Flux
- codepipeline
- Spring
- VPN
- codebuild
- IntelliJ
- kubeflow
- COALESCE
- PostgreSQL
- chartjs
- chart.js
- java bigdecimal
- bootstrap
- codedeploy
- node
- docker
Archives
- Today
- Total
Small Asteroid Blog
java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true) 본문
백엔드/Spring
java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true)
작은소행성☄️ 2021. 10. 19. 15:18728x90
POST 방식으로 REST API 호출시에 발생하는 에러이다.
아래 내용에서 con.setDoOutput(true) 로 설정해주면 된다.
HttpURLConnection con = (HttpURLConnection)obj.openConnection();
con.setRequestMethod("POST");
con.setDoOutput(true); // 이 항목을 추가
728x90
반응형
'백엔드 > Spring' 카테고리의 다른 글
SyntaxError: ('future feature print_function is not defined', ('__pyclasspath__/numpy/__init__.py', 107, 0, '')) (0) | 2021.10.22 |
---|---|
[spring] spring cors 해결 (0) | 2021.10.19 |
java selenium input 값 입력 및 버튼 클릭 (0) | 2021.10.18 |
[spring] jsoup으로 사이트 크롤링하기 (0) | 2021.09.30 |
[querydsl] import static com.querydsl.core.types. does not exist - gradle cache 삭제 (0) | 2021.09.23 |