데이터베이스
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
mminky
2020. 12. 26. 20:10
728x90
MySQL 을 이용하려다가
결국 성공하지 못하고 파이어베이스의 Firestore로 갈아타려고 했다.
하지만 에러가 발생했다.
firestore Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
MySQL 관련된 내용을 다 지웠는데 왜 뜨지? 했는데
다시 찾아보니
build.gradle 에 jpa, jdbc 가 남아있었다..!
완전히 제거한 후 돌리니 해결완료 :)
[ 요약 ]
* MySQL 등
application.properties 에 다음을 추가한다. (확실 X)
spring.datasource.url=jdbc:mysql://localhost:3306/데이터베이스명?autoReconnect=true
spring.datasource.username=아이디
spring.datasource.password=비밀번호
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
* MySQL 이용하다가 취소한 경우
전체 파일에서 jpa, jdbc, mySQL 관련 항목을 지운다
특히 build.gradle 에서!
반응형