Vscode | SpringBoot | Gradle 환경
❌Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
✅ applicatoin.properties 파일에 DB 정보 등록하기
spring.datasource.url=jdbc:mysql://{127.0.0.1:PORT}/{DB이름}
spring.datasource.username={사용자이름}
spring.datasource.password={비밀번호}
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.hibernate.format_sql=true
댓글