[ Spring Boot ] Request 처리 (기본)
·
Web Development/Spring Boot
▶ Title - Client에서 Request를 받아오고, Body안에 담긴 데이터들 출력(확인)하기. ▷ 1 - Rest API Controller 생성// ( Signup_API.java )@RestControllerpublic class Signup_API {}→ 작업 내용: - Signup_API class 생성 - @RestController Annotatoin 추가 → 작업 이유: - Request를 처리할 REST API를 생성하여야 하기 때문 → 설명: - @RestController Annotation: REST API로 활용하고 싶은 class 앞에 @RestController Annotation을 작성하면 ..
[ 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정상적으로 작동했던 코드였음에도 불구하고,코드를 수정하지 ..