프레임워크/Spring

Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.dialect.MySQL57Dialect]

아모르AMORE 2024. 1. 14. 23:00

 

주어진 문제

  • 대상 프로젝트 : Toy / Web / Spring boot + JPA / SignUp, LogIn /
  • 사용한 의존성 관리 툴 : gradle (groovy)
  • 추가한 dependencies : 
dependencies {
	implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
	implementation 'org.springframework.boot:spring-boot-starter-jdbc'
	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
	implementation 'org.springframework.boot:spring-boot-starter-web'
	compileOnly 'org.projectlombok:lombok'
	runtimeOnly 'com.mysql:mysql-connector-j'
	annotationProcessor 'org.projectlombok:lombok'
	testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

 

 

 

 

- 문제를 해결하는 과정

Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [org.hibernate.dialect.MySQL57Dialect]

 

  # spring data jpa 설정
  jpa:
    database-platform: org.hibernate.dialect.MySQL57Dialect
    open-in-view: false
    show-sql: true
    hibernate:
      ddl-auto: update

- 기술 이슈에 대해 되도록 깊은 고찰을 거쳐서 글 쓰기

 

- 학습한 내용에 대해서 다른 사람도 이해하기 쉽게 글 쓰기

 

- 사이드 프로젝트의 과정과, 그 중에서 어떤 결정을 무슨 생각으로 했는지 드러나게 글 쓰기

'프레임워크 > Spring' 카테고리의 다른 글

사용하는 기술스택/변경 이유/장점  (1) 2023.12.20