본문 바로가기

Programming

[Spring boot] Failed to load ApplicationContext Test 오류 해결 (vscode)

Test 실행 오류 해결 방법 

vscode spring boot test error

vscode에서 spring boot test 코드 실행 시, 위의 이미지와 같은 오류가 발생하였다.

java.lang.IllegalStateException: Failed to load ApplicationContext

spring:
  datasource:
    url: jdbc:h2:tcp://localhost/~/stock #;MVCC=TRUE
    username: sa
    password: 
    driver-class-name: org.h2.Driver

application.yml의 spring.datasource.url상의 ;MVCC=TRUE를 제거하니 정상 동작하였다.

vscode spring boot test success

반응형