본문 바로가기
내가 보려고 정리한 Spring

[JUnit] No qualifying bean of type 'javax.servlet.ServletContext'

by nacastle 2020. 8. 31.

No qualifying bean of type 'javax.servlet.ServletContext'

 

Application Context 어쩌구 하면서

위와 같은 에러가 뜬다면...

 

config 내 스프링 설정파일에 (ex. spring-config.xml)에

	<bean class="org.springframework.mock.web.MockServletContext"/>

 

이걸 추가해주게나...

반응형