문제

org.springframework.beans.factory.BeanCreationException
: Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in
class path resource
[org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]
: No data scripts found at location 'classpath:db/data.sql'
해결방법
마지막 줄
classpath:db/data.sql
의 경로를 찾을 수 없어서 오류가 난다.
classpath
= templates 폴더
application.properties
의 더미 데이터를 생성하는 코드를 잠시 주석 처리 해준다.
Share article