Tech Collection

[SpringBoot Test] DataSource 에러 본문

Build/Error

[SpringBoot Test] DataSource 에러

eee_269 2021. 3. 21. 01:17
728x90
반응형

혹시 Test 돌리려고 할 때, application.properties에 알맞은 DB 경로를 입력했음에도 불구하고

더보기

Failed to load ApplicationContext

 

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.beans.factory.UnsatisfiedDependencyException:~~

 

Failed to determine a suitable driver class

 

이런 내용들의 에러가 뜬다?

 

-> 테스트코드의 제일 위에 

@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})

넣어주기!

 

 

 

728x90
반응형

'Build > Error' 카테고리의 다른 글

[JPA Query] Update, Delete를 쿼리문으로 짰을 때  (0) 2021.03.24
[GitHub] push시 403 Error  (0) 2021.01.22
[Spring Error] 에러 모음집  (0) 2021.01.16