반응형
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
- SQL
- codedeploy
- IntelliJ
- VPN
- AWS CI/CD 구축하기
- bootstrap
- kubeflow
- PostgreSQL
- node
- Spring
- Spring Error
- aws
- JavaScript
- java bigdecimal
- COALESCE
- codepipeline
- docker
- Flux
- Jenkins
- codedeploy error
- redis
- chart.js
- Airflow
- or some instances in your deployment group are experiencing problems.
- Python
- Kafka
- codebuild
- chartjs
- 도커
- aws cicd
Archives
- Today
- Total
Small Asteroid Blog
[Spring] Swagger Error - Failed to load API definition. 본문
728x90
Failed to load API definition.
Fetch error
undefined http://localhost:8080/v3/api-docs
Spring 에서 Swagger3을 사용하고 있는데 해당 오류가 발생했다.
해결 방법 (1)
Spring Security도 사용하고 있어서 permitAll()을 사용했다.
...
.antMatchers("/swagger-ui/**", "/v3/api-docs/").permitAll();
해결 방법 (2)
permitAll을 사용해도 안된다면
@ApiImplicitParam 이라는 어노테이션을 사용하고 있을때
@RequestBody와 요구되는 Param이 일치하지 않아서 생기는 오류일 수 있어서 해당 부분도 확인해보면 좋다.
728x90
반응형
'백엔드 > Spring' 카테고리의 다른 글
[Spring Batch] @JobScope 와 @StepScope 개념 및 예제 (0) | 2023.09.23 |
---|---|
[Spring] Could not resolve placeholder 'datasource.host' in value (0) | 2023.09.22 |
[JPA] Swagger Error - [Request processing failed; nested exception is java.lang.NullPointerException] with root cause (0) | 2023.08.16 |
[Spring] Spring HATEOAS란 (0) | 2023.08.10 |
[JPA] List to Page - List를 Page로 변환해서 사용하기 (0) | 2023.08.07 |