inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술

스프링 통합 테스트

MemberServiceIntegrationTest 에러

4235

작성자 없음

작성한 질문수 0

1

MemberServiceIntegrationTest 회원가입 실행 했더니

  1. 00:48:24.902 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [hello.hellospring.service.MemberServiceIntegrationTest]: MemberServiceIntegrationTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.

  2. 00:48:24.954 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration hello.hellospring.HelloSpringApplication for test class hello.hellospring.service.MemberServiceIntegrationTest

  3. Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended

에러가 발생하는데 어떻게 해결을 해야 할지 모르겠습니다.

spring boot version : 3.1.0 입니다.


dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
runtimeOnly 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

이렇게 설정되어있습니다.

 

 

 

java spring mvc spring-boot

답변 1

4

OMG

안녕하세요. 주종현님, 공식 서포터즈 OMG입니다.

올리신 로그 메시지에 따르면 테스트 실패나 에러가 보이지 않습니다. "Could not detect default configuration classes for test class..." 메시지는 Spring이 @Configuration 어노테이션이 적용된 클래스를 테스트 클래스에서 찾지 못했다는 것을 의미하지만, 이는 경고 수준의 메시지이며, 테스트 실행에 실패하는 원인이 되지는 않습니다.

"Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended" 는 JVM의 경고로, Java 9 이상에서 발생할 수 있는 문제입니다. 일반적으로 이 경고 메시지는 애플리케이션의 실행에 영향을 미치지 않습니다.

문제라고 생각하시는 부분을 화면캡쳐(최대한 많은 정보를 담을 수 있게 전체 화면으로) 그리고 기대했던 결과와 실제 결과 등의 추가 정보를 올리시면 확인 후 답변 드릴 수 있을 것 같습니다.

감사합니다.

..

0

76

2

Unused property.....

0

101

2

project JDK is misconfigured

0

132

2

외부 API의 ID 타입(String/UUID)과 내부 도메인의 ID 타입(Long)이 불일치할 때의 설계 정석

0

83

2

단위/통합 테스트 버전충돌 문제

0

91

2

❗️springboot 4.0.2 버전 aspectj dependency 설정❗️

0

230

1

왜 컨트롤러는 변한게 없는데 새로 만든 html 파일이 뜨나요?

0

104

2

윈도우 build test오류 질문

1

103

2

테스트 관련 공부에 대한 조언을 얻고 싶습니다

0

101

2

테스트 실행 시 에러 질문

0

292

1

name을 통한 비교와 객체를 통한 비교

0

77

1

빌드 후 libs 없음

1

129

1

윈도우 gradlew.bat 에러

0

167

1

@PostMapping("/members/new")가 동작하지 않습니다

0

89

1

java static class와 kotlin class

0

79

1

스프링 DB연결

0

127

1

소요 시간

0

87

2

ddl.sql에 빨간 밑줄

1

102

2

welcome page 에러

0

183

3

잘 모르겠습니다.

0

164

2

fail을 똑같이 쳤는데 오류가 발생해요

0

156

2

index.html Welcome page

0

124

1

프로젝트 gradle-groovy ?

0

369

1

테스트코드 메서드명 한글

0

202

2