3) JPA 설정
Mybatis 설정이 완료된 프로젝트 이후에 JPA 설정을 추가합니다. 먼저 build.gradle에 다음 라이브러리를 추가하고 코끼리 버튼을 클릭하여 업데이트합니다. dependencies { … // JPA 라이브러리 추가 (기존에 있으면 추가안해도 무방함) implementation ‘org.springframework.data:spring-data-jpa’ implementation ‘org.springframework.boot:spring-boot-starter-data-jpa’ … } 그런 다음 application.properties 파일을 수정합니다. (기존 내용 아래 추가) teamflace.jpa.datasource.master.jdbc-url=jdbc:log4jdbc:mysql://localhost:3306/(스키마명)?characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true&autoReconnection=true teamflace.jpa.datasource.master.username=(아이디) teamflace.jpa.datasource.master.password=(비밀번호) teamflace.jpa.database=mysql teamflace.jpa.hibernate.use-new-id-generator-mappings=false teamflace.jpa.show-sql=true #데이터베이스 방언을 프로젝트 main DB인 MySQL로 … Read more