spring
-
Proxy error: Could not proxy requestERROR 2024. 7. 18. 21:30
REACT - Spring Boot 중 Proxy error: Could not proxy request /idCheck?id=test1232 from localhost to http://localhost9007. See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND). 라는 에러가 발생 검색결과package.json 파일에 proxy 에 대한 오류이기 때문에 적어줘야한다. "proxy" : "http://localhost:9007", 를 적어야하지만"proxy" : "http://localhost9007", 를 적었다 ( : 를 안적음) + TodoList 가 나오지 않는 문제..
-
SpringBoot @ 정리JAVA 2024. 6. 19. 20:19
1. @SpringBootApplication설명: Spring Boot 애플리케이션의 시작점을 정의합니다. 이 어노테이션은 여러 다른 어노테이션(@Configuration, @EnableAutoConfiguration, @ComponentScan)을 조합한 것입니다. 2. @Controller설명: Spring MVC에서 컨트롤러 클래스를 정의할 때 사용합니다. 이 클래스는 웹 요청을 처리하고 웹 응답을 생성합니다.3. @RequestMapping설명: 클래스나 메서드에 매핑 정보를 제공하여 특정 URL 패턴에 대한 요청을 처리합니다. 클래스 레벨과 메서드 레벨에서 모두 사용할 수 있습니다.4. @Slf4j설명: Lombok 라이브러리에서 제공하는 어노테이션으로, 로깅 기능을 쉽게 사용할 수 있도록 로..