본문 바로가기
반응형

Boot14

[ QueryDSL ][ Spring ] attempt to recreate a file for type qclass 에러 해결 방법 💥 build 시 발생한 에러 메시지attempt to recreate a file for type qclass ❓에러 발생 이유QueryDSL의 QClass 파일의 중복 문제로 발생한 에러입니다. ✅ 해결 방법 ✔️ 해결 방법해당 프로젝트의 build 폴더를 삭제 후 다시 build 해주면 기존 QClass 파일이 삭제되며 build 시 새로 생기게 되며 QClass 파일의 중복 문제를 해결할 수 있습니다.build clean -> build 2024. 4. 10.
[ Spring ] java.lang.IllegalArgumentException: Name for argument of type 에러 해결 방법 💥 application run 시 발생한 에러 메시지java.lang.IllegalArgumentException: Name for argument of type [com.example.demo.domain.type.SearchType] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.   ❓에러 발생 이유build를 인텔리제이로 해서 발생한 에러이다. 인텔리제이에서 빌드할 때는 -parameters' 플래그가 기본적으로 사용되지 않을 수 있습니다. ✅ 해결 방법 ✔️ 해결 방법 build를 인텔리제이에서 gradle로.. 2024. 4. 10.
[ Spring ] Could not find build 에러 해결 방법 💥 build 시 발생한 에러 메시지demo:main: Could not find org.thymeleaf.extras:thymeleaf-extras-springsecurity5:.Required by:project :Possible solution:- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html  ❓에러 발생 이유해당 라이브러리의 버전을 명시해 주지 않아서 build가 실패하며 발생한 에러입니다. ✅ 해결 방법 ✔️ 해결 방법해당 라이브러리의 버전을 정확히 명시해 주면 정상적으로 build가 진행됩니다.. 2024. 4. 10.
[ JPA ][ Spring ] Enum Class 사용시 SQL Error: 1265, SQLState: 01000 에러 해결 방법 문제 상황현재 프로젝트에서 환불처리가 되지 않았다.환불처리의 로직은 외부 API를 통해 환불을 요청하며 그 후에 DB에 데이터를 환불 상태로 변경하는 로직이다. 하지만 Front를 통하여 서버로 API 요청을 해보니 카드 취소 메시지는 정상적으로 왔으며, (환불 API는 정상적으로 요청이 되었으나 ) DB에 데이터를 환불 상태로 변경하는 부분에서 에러가 발생하여 서버에서는 500에러를 발생하였다. 분명 로컬에서 환불 테스트를 하고 merge를 시켰으며 코드 자체는 데이터의 상태 변경 코드이기 때문에 비교적 쉬운 코드라 이해하지 못한 부분도 없으며, 코드를 다시 확인해 보아도 잘못한 부분이 없었다. 에러 메시지는 아래와 같이 출력되었다.2024-04-02T21:44:07.989+09:00 WARN 1 --.. 2024. 4. 5.
반응형