(Spring) Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
·
오류 수집
이번에 Spring 실습하면서 발생한 오류이다.Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 음... 처음에 이게 뭔 소리인가 했는데 web 을 실행할때 DB를 접속하는 의존성 주입이 되지 않은 상태여서 발생했다... application.properties에 아래 같이 사용하고 있는 DB관련 내용을 추가해주면 된다.(MySQL을 기준으로 작성했습니다.)spring.datasource.url=jdbc:mysql://localhost:3306/(데이터베이스)spring.datasource.username=(계정)spring.datasource.pas..