백엔드 공부/에러정리 3

Springboot3.0에서 [Spring] Could not resolve all files for configuration ':classpath'. 해결하기!!

Springboot3.0에서 [Spring] Could not resolve all files for configuration ':classpath'. 해결하기!! Springboot3.0이 나왔다!! 근데 이거를 깃에서 클론받아서 쓰려하면 Could not resolve all files for configuration ':classpath'. 요런 에러가 나면서 안될때가 있다. 이게 안되는 이유는 아마 JDK버전 문제일 가능성이 크다. 왜냐면 Spring Boot 3.0 이상 버전에서는 JDK17이상만 지원하기 때문! 그니까 당신의 컴터는 다른 JDK인데 필요한게 JDK17이상이기 때문 해결법 IntelliJ의 preference에 들어가서 cmd + , Build, Ex..

Unable to load class 'com.mysema.codegen.model.Type' error 발생 및 해결

프로젝트 진행 중에 queryDSL을 통한 Q class 생성에서 위와 같은 에러가 발생하였다. 해결을 위해 찾아본 결과 spring boot 2.6이상에서는 querydsl5.0 이상 버전을 적용하고, 추가적인 내용들이 필요하다고 한다. buildscript { ext { queryDslVersion = "5.0.0" } } plugins { id 'org.springframework.boot' version '2.7.2' id 'io.spring.dependency-management' version '1.0.12.RELEASE' id "com.ewerk.gradle.plugins.querydsl" version "1.0.10" id '..

Spring : table 'DB명.hiberbate_sequence' doesn't exist 에러 발생

이거 발생하는 이유는 기존에 사용하던 @GeneratedValue @GeneratedValue(strategy = GenerationType.AUTO) 요것들 때문이다. mysql을 사용하여 원래 있던 테이블에 사용하는데, 위의 내용들을 사용하면 테이블을 새로 만들어서 진행한다... 그래서 저 위의 내용을 @GeneratedValue(strategy = GenerationType.IDENTITY) 요렇게 바꾸면 내가 만든 DB를 읽어와서 적기 때문에 저 에러가 안나올 것이다.