인프런 커뮤니티 질문&답변
Could not Autowire. No Bean of 에러가 발생합니다.
작성
·
2K
0
안녕하세요.
오랜만에 다시 복습하고 있는데
우선 저는 Junit5 로 테스트를 해보았는데
이렇게 작성하면 memberSerivce에서 Could not Autowire. No Bean of 에러가 발생합니다.
그런데 @SpringBootTest 를 삭제하면 Could not Autowire. 에러가 발생하지 않습니다. 왜 그런건지 잘 모르겠습니다. ㅜ
구글링 해서 다른 방법을 써도 증상이 없어지지가 않네요.
감사합니다.
@ExtendWith(SpringExtension.class)
@SpringBootTest
@Transactional
class MemberServiceTest {
@Autowired MemberService memberService;
}






안녕하세요.
네 맞습니다, 덕분에 해결이 되었습니다 !
감사합니다.