반응형
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 |
Tags
- chartjs
- Python
- bootstrap
- 도커
- Spring
- docker
- Kafka
- Spring Error
- Jenkins
- redis
- aws cicd
- codedeploy
- Flux
- JavaScript
- openlens
- java bigdecimal
- SQL
- aws
- PostgreSQL
- chart.js
- AWS CI/CD 구축하기
- Airflow
- COALESCE
- codepipeline
- IntelliJ
- codedeploy error
- VPN
- codebuild
- kubeflow
- node
Archives
- Today
- Total
Small Asteroid Blog
[spring] Jsoup HTTP error fetching URL. Status=405 본문
728x90
Jsoup 을 이용해 크롤링을 하던 중 다음과 같은 에러가 발생했다.
Jsoup HTTP error fetching URL. Status=405
해결방법으로는
Jsoup connect 에서 POST를 사용중이였다면 GET으로 변경해준다.
기존코드
Connection.Response response = Jsoup.connect(link).method(Connection.Method.POST).execute();
변경코드
Connection.Response response = Jsoup.connect(link).method(Connection.Method.GET).execute();
728x90
반응형
'백엔드 > Spring' 카테고리의 다른 글
| [spring error]org.hibernate.service.spi.ServiceException (0) | 2021.12.20 |
|---|---|
| [spring] Json 데이터 Object, Array 값 key, value 가져오기 (0) | 2021.12.14 |
| StringBuilder & System.out.println() (0) | 2021.11.24 |
| 자바에서 파이썬 파일 실행하기 - processbuilder (0) | 2021.11.10 |
| [Java] 구글 뉴스 날짜별로 크롤링하기 (0) | 2021.11.08 |