본문 바로가기
반응형

JAVA/Error12

[ QueryDSL ] Could not find com.querydsl:querydsl-apt: 5.0.0. 오류 해결 방법 💥 Build 실행 후 발생한 에러 메시지itemservice-db:main: Could not find com.querydsl:querydsl-apt: 5.0.0.Required by:    project :Possible solution:- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html ✅ 해결 방법공백을 제거해 줍니다.build.gradle// 수정 전//Querydsl 추가implementation 'com.querydsl:querydsl-jpa'annotationProcessor "com.quer.. 2024. 7. 22.
[ Postman ][ Spring ] 405 Method Not Allowed 오류 해결 방법 💥 Postman send 버튼 클릭시 발생한 에러 메시지405 Method Not Allowed ❓에러 발생 이유클라이언트에서 요청한 HTTP Method가 서버에 존재하지 않아 나타나는 오류 메시지입니다.해당 오류 메시지는 Spring(Servlet, Tomcat)이 출력하는 에러 메시지입니다.예를 들어 서버(Spring, Java)에서는 HTTP Method를 Put으로 요청받기를 설정하였지만, 클라이언트에서는 HTTP Method를 Post로 요청할 경우에 나타나는 에러입니다.보통은 HTTP Method 설정을 잘못 설정하여 나타나는 에러입니다.혹은 Spring에 해당 URL을 처리하는 Mapping이 잘못 구현되거나 구현되지 않은 상태입니다. ✅ 해결 방법✔️ 해결 방법Client의 HTTP .. 2024. 7. 12.
[ Postman ][ Spring ] 404 Not Found 오류 해결 방법 💥 Postman send 버튼 클릭시 발생한 에러 메시지404 Not Found ❓에러 발생 이유클라이언트에서 요청한 URL이 서버에 존재하지 않아 나타나는 오류 메시지입니다.해당 오류 메시지는 Spring(Servlet, Tomcat)이 출력하는 에러 메시지입니다.예를 들어 서버(Spring, Java)에서는 '/hello'라는 URL로 응답 받기를 설정하였지만, 클라이언트에서는 '/hi'라는 URL로 요청할 경우에 나타나는 에러입니다.보통은 URL을 잘못 입력하여 나타나는 에러입니다.혹은 Spring에 해당 URL을 처리하는 Controller이 구현되지 않은 상태입니다. ✅ 해결 방법✔️ 해결 방법Server와 Client의 URL을 통일시켜 줍니다.Spring의 Controller 예시 코드@.. 2024. 7. 12.
[ Spring ] The bean 'delegatingApplicationListener' 에러 해결 방법 💥 application run 시 발생한 에러 메시지***************************APPLICATION FAILED TO START***************************Description:The bean 'delegatingApplicationListener', defined in class path resource [hello/sns/configuration/AuthenticationConfig.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/security/config/annotation/web/.. 2024. 5. 28.
반응형