일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- jsp
- jenkins
- Spring
- JPA
- springboot
- Web Server
- Gradle
- 맛집
- ReactJS
- java
- MySQL
- Git
- linux
- elasticsearch
- db
- tool
- Design Patterns
- AWS
- ubuntu
- Oracle
- laravel
- devops
- php
- docker
- IntelliJ
- javascript
- redis
- Spring Boot
- 요리
- it
Archives
- Today
- Total
목록크로스도메인 (1)
아무거나
스프링부트에서 swagger사용시 크로스 도메인 이슈
Client(=User) -> Web Server -> API Server 로 구성되어 있는 하나의 시스템에서 서버 설정에 따라 크로스 도메인 이슈가 발생하곤 한다. 그래서 java 소스상에 @Configuration을 선언하고 WebMvcConfigurerAdapter를 상속받아 오버라이딩하여 메소드를 작성하면 해당 이슈는 해결된다. import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.CorsRegistry; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import..
Java/Java
2018. 11. 20. 21:18