Backend/기타

[에러] Interceptor 설정 에러 : The prefix "mvc" for element "mvc:interceptors" is not bound

saintclair 2024. 6. 3. 17:01

 

 

에러 : The prefix "mvc" for element "mvc:interceptors" is not bound.
원인 : 네임스페이스 참조가 누락되어 발생
해결 : servlet-context.xml 파일의 상단 Bean에 아래 구성을 추가한다.
xmlns:mvc="http://www.springframework.org/schema/mvc"