
React로 프론트엔드를 구성하고 Spring Boot로 백엔드 서버를 구성한 프로젝트에서 로컬 개발 시 CORS 연동처리프론트엔드는 http://localhost:3000에서 실행백엔드는 http://localhost:8080에서 실행 연동 후 프론트 실행 시 현재 시간 나타내기 전역(Global) 설정import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.CorsRegistry;import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;@Configurationpublic cl..