[Spring-Boot] Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath. 에러발생 대처법

스프링 부트와 JPA연동 중 생긴 오류.

이제 Mybatis를 졸업하고, Hibernate도 아닌, 오리지널 JPA로 들어가려던 찰나, 아에 DB커넥션 자체가 먹지 않는다.

에러메시지는 아래와 같다.

Cannot determine embedded database driver class for database type NONE. If you want an embedded database please put a supported one on the classpath.

이상한 에러이긴 하지만, 분명 Gradle에 spring-boot-starter-data-jpa가 있는데 에러가 난다.. 분명 클래스 패스 문제는 아닌 것 같은데..

스프링 공식 문서에서 확인해 본 결과,

http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-sql.html#boot-features-connect-to-production-database

위를 보면 application.properties 가 필요하고, 거기다 아래를 넣어주란다.

spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=dbuser
spring.datasource.password=dbpass
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

그런데 이 파일을 어디다 생성해야 하나? /src/main/resource/application.properties 에 넣으니 해결되었다.