[Project] 프로젝트 만드는법 리액트 + 스프링부트+ 스프링시큐리티~2.백엔드 프로젝트 생성하기~()_react springboot_--신촌 더조은 학원 2차 프로젝트 +How to create a project with Spring Boot and React+
[프로젝트] 리액트 + 스프링부트로 프로젝트 만드는법~ 2.백엔드 프로젝트 생성하기 1. 스프링부트 프로젝트 생성 방법 (프론트엔드와 별도의 폴더에 백엔드 프로젝트생성) - 아래 링크 참고 https://rockbottomdevbus.blogspot.com/2024/04/springboot-1-325-intellij-idea-20241.html 2. 스프링 시큐리티 설정 CORS 설정(frontEnd 와 통신을위해) CustomSecurityConfig.java package com.project.back.config; import lombok. RequiredArgsConstructor ; import lombok.extern.log4j. Log4j2 ; import org.springframework.context.annotation. Bean ; import org.springframework.context.annotation. Configuration ; import org.springframework.security.config.annotation.method.configuration. EnableMethodSecurity ; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.web.SecurityFilterChain; import org.springframework.web.cors.CorsConfiguration; import org.springframework.web.cors.CorsConfigurationSource; import org.springframework.web.cors.UrlBasedCorsConfigurationSource; import java.util.Arrays; @Configuration @Log4j2 @EnableMethodSecurity @Req...