Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Database에 연결하기 위해 필요한 정보가 없기 때문
스프링은 Database 연결 설정 정보뿐만 아니라 프로젝트 전반에 필요한 환경 설정 값을 파일로 관리할 수 있다.
대표적인 환경 설정 파일
spring:
datasource:
url: jdbc:[Database]://localhost:3306/[Database스키마]
username: [DB 아이디]
password: [DB 비밀번호]
driver-class-name: [JDBC 드라이버]
spring.datasource.url=jdbc:[Database]://localhost:3306/[Database스키마]
spring.datasource.username=[DB 아이디]
spring.datasource.password=[DB 비밀번호]
spring.datasource.driver-class-name=[JDBC 드라이버]