Replies: 2 comments
-
|
@WebAppConfiguration은 JUnit 테스트에서 Spring MVC의 웹 전용 컨텍스트(WebApplicationContext)를 로딩하도록 지정하는 애노테이션입니다. 웹 환경에서는 DispatcherServlet, WebMvcConfigurer, ViewResolver, MultipartResolver 같은 웹 관련 빈들이 설정되어 있어야 테스트가 가능합니다! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
JUnit으로 Spring MVC 기반 Controller 테스트할 때 @WebAppConfiguration을 왜 쓰는지?
@ContextConfiguration과 함께 사용하는 이유?
ApplicationContext랑 WebApplicationContext의 차이?
Beta Was this translation helpful? Give feedback.
All reactions