인프런 커뮤니티 질문&답변
mysql driver class 오류 문의 드립니다.
작성
·
920
0
안녕하세요 강의 따라하는데
Failed to determine a suitable driver class
발생해서 원인을 찾고 있습니다.
혹시 application.yml 파일을 복사해서 따라해보고 싶은데
코드를 확인할 수 있는 git 주소가 있을까요?
답변 2
2
저는 이렇게 해결했어요. 잘 해결되셨기를 바랍니다
1. 데이터베이스 생성
2. schema-mysql.sql을 생성한 database에 실행해 table 만들기
3. application.yml 강의와는 다르게 수정
spring:
profiles:
active: local
---
spring:
config:
activate:
on-profile: local
datasource:
url: jdbc:mysql://localhost:3306/데이터베이스
username: 이름
password: 비밀번호
driver-class-name: com.mysql.cj.jdbc.Driver
batch:
jdbc:
initialize-schema: never
1
정수원
지식공유자
네
git 주소는 https://github.com/onjsdnjs/spring-batch-lecture 입니다.
master 를 포함해서 각 브랜치별로 강의소스가 제공되고 있습니다.






답변 감사합니다 ^^
저는 이렇게 해결했습니다.(참고 차 전달 드려요)