[ Troubleshooting Note ] Spring Boot - CORS Access-Control-Allow-Origin
·
Web Development/Troubleshooting Note
▶ EnvironmentReact(Frontend): http://localhost:5173SpringBoot(Backend): http://localhost:8080 ▶ When the Error Occurred로그인 기능 구현 중 클라이언트와 서버의 통신 과정에서 발생하였다. ▶ Error MessageAccess to XMLHttpRequest at 'http://localhost:8080/user/addbasic' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.http://local..
[ Troubleshooting Note ] Spring Boot - Variable might not have been initialize
·
Web Development/Troubleshooting Note
▶ EnvironmentSpringBoot: 3.xJava: 17JDK: openjdk-22 ▶ Error MessageVariable 'usersRepository' might not have been initialize(참고: Variable 'ooo' might not have been initialize)번역) 변수 'usersRepository'가 초기화되지 않았을 수 있습니다. ▶ When the Error Occurred약 7일 전 Spring Boot를 이용한 회원가입 시스템을 구현해 두었다.금일 코드 확장을 위하여 다시 IntelliJ를 실행하여 프로젝트 폴더를 열었을 때 오류가 발생하였다. ▶ Error Description정상적으로 작동했던 코드였음에도 불구하고,코드를 수정하지 ..