#오류내용
스프링부트 사용시 Failed to configure a DataSource: 'url' attribute is not specified..
#해결방법
1. build.gradle - dependencies 에서 implementation 'org.springframework.boot:spring-boot-starter-jdbc' 추가
2. application.properties에서 아래내용 추가
# Database
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@localhost:1521/xe
spring.datasource.username= //"DB접속 ID"
spring.datasource.password= //"DB접속 PW"
+ 혹은 스프링부트 Initializr에서 Oracle Driver 를 Dependencies에서 추가안해줬을때...
728x90
'Learning > Errors' 카테고리의 다른 글
Column 'uid' in order clause is ambiguous (0) | 2022.07.14 |
---|---|
There is no getter for property named 'keyword' in 'class java.lang.String' (0) | 2022.07.12 |
부적합한 열유형 1111 오류 (null 값 허용) (0) | 2022.05.25 |
Uncaught TypeError: Cannot read properties of undefined (reading 'fn') (0) | 2022.05.25 |
Web server port:8080 already in use (0) | 2022.05.25 |