본문 바로가기

Small Asteroid Blog

검색하기
Small Asteroid Blog
프로필사진 작은소행성☄️

  • 분류 전체보기 (625)
    • 백엔드 (305)
      • Spring (135)
      • Java (11)
      • Node.js (13)
      • Python (69)
      • DB (55)
      • Troubleshooting (0)
    • 프론트엔드 (35)
      • Javascript (29)
      • vue (2)
    • AI (21)
      • Bigdata (5)
    • 클라우드 및 인프라 (183)
      • Docker (35)
      • Kubernetes (14)
      • AWS (46)
      • CKA (12)
      • Linux (62)
      • 네트워크 (13)
      • Observability (0)
    • 도구 (1)
      • Git (32)
      • Intellij (13)
      • 개발 용어 정리 (8)
      • Mac (8)
Guestbook
반응형
250x250
Notice
Recent Posts
Recent Comments
Link
«   2026/01   »
일 월 화 수 목 금 토
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
  • docker
  • SQL
  • chart.js
  • redis
  • Airflow
  • 도커
  • Flux
  • Spring Error
  • Kafka
  • JavaScript
  • Python
  • bootstrap
  • codedeploy error
  • codepipeline
  • aws cicd
  • aws
  • Jenkins
  • AWS CI/CD 구축하기
  • IntelliJ
  • PostgreSQL
  • Spring
  • node
  • VPN
  • java bigdecimal
  • openlens
  • COALESCE
  • kubeflow
  • codebuild
  • codedeploy
  • chartjs
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록java post (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바