728x90
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
ํ๋ก์ ํธ๊ฐ ์์ฑ๋ ๋ appliction.properties ํ์ผ์ด ์๋ ์์ฑ๋๋ค.
( = ์ฆ appliction.properties ํ์ผ์ JDBC datasource๋ด์ฉ์ด ์์ด์ ๋ฌ ์๋ฌ)
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
JDBC ์ค์ ์ ์์ง ํ์ง์์๊ณ ,
ํ ์คํธ๋ก
์๋ฒ๋ง ์คํํ๊ธฐ ์ํ ๋ ์ฐ๋ ๋ฐฉ๋ฒ..
Main Class๋ฅผ ์ด๊ณ
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
@SpringBootApplication
public class DemoProjectApplication {
public static void main(String[] args) {
SpringApplication.run(DemoProjectApplication.class, args);
}
}
์ด๋ ธํ ์ด์ ์ ์ถ๊ฐ ํ
import ํด์ฃผ๋ฉด ๋
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
์ฐธ๊ณ : https://lemontia.tistory.com/586
'Spring > Spring Boot' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Spring Boot] Spring Tools 4 ์ค์น ๋ฐ ํ๋ก์ ํธ ์์ฑ (2) | 2020.09.02 |
---|