728x90
ERROR
StudywithsolApplicationTests > contextLoads() FAILED
37 java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:98
38 Caused by: org.yaml.snakeyaml.constructor.ConstructorException at SafeConstructor.java:574
해결 -> 3번으로 해결
1. @SpringBootTest어노테이션에 class 추가
@SpringBootTest(classes = StudywithsolApplicationTests.class)
class StudywithsolApplicationTests {
@Test
void contextLoads() {
}
}
2. --debug 추가
run: ./gradlew --debug build
3. build.gradle에 해당 내용 추가
tasks.test {
testLogging {
showExceptions = true
exceptionFormat "full"
showStackTraces true
}
}
'Back-End > Issues' 카테고리의 다른 글
[MySQL] caused by: java.sql.sqlsyntaxerrorexception: you have an error in your sql syntax; (0) | 2023.09.12 |
---|---|
[GitHub Actions] Directory ~ does not contain a Gradle build (0) | 2023.09.12 |
[Jenkins] git과 연동 오류 (0) | 2023.08.10 |
[MariaDB] Driver org.mariadb.jdbc.Driver claims to not accept jdbcUrl (0) | 2023.08.04 |
[Querydsl] gradle 설정 오류 (0) | 2022.10.25 |