2. 웹 프로젝트 설정 파일 web.xml에 시큐리티 필터를 등록합니다.
코드 8-2 web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app...>
...
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>