build.gradle 파일에 dependencies 에
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'mysql:mysql-connector-java:8.0.33'
를 추가해준다.
내가 사용하려는 db 의
host name 은 localhost,
port 번호는 3306,
사용자는 root,
스키마는 new_schema 이다.
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/new_schema?useSSL=false&allowPublicKeyRetrieval=true&characterEncoding=UTF-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=비밀번호
spring.jpa.show-sql=true
끝!