스프링에서 프로젝트를 진행하다 보면 서버를 실행할 때 404 오류 코드를 흔히 볼 수 있다.
이는 servlet-context.xml 파일과 관련이 있는데
<beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<beans:property name="prefix" value="/WEB-INF/views/" />
<beans:property name="suffix" value=".jsp" />
</beans:bean>
위와 같은 코드에서
URL 경로를 View로 처리하기 때문이라는 것을 확인할 수 있다.
많은 도움이 되었습니다, 감사합니다.