[Spring] Filter 등록해서 쓰기

등록 경로 : window - preferences - xml - xml files - editor - template - new - context(xml-tag)



name : encodingFilter (이름은 알아서 준다.)


description : Spring의 Encoding Filter web.xml에 등록 (주석처럼 설명달아준다.)


pattern:

<filter>

  <filter-name>encodingFilter</filter-name>

  <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>

  <init-param>

  <param-name>encoding</param-name>

  <param-value>${encoding}</param-value>

  </init-param>

  </filter>

  <filter-mapping>

  <filter-name>encodingFilter</filter-name>

  <url-pattern>${url}</url-pattern>

  </filter-mapping>



${바꿀내용}

댓글

Designed by JB FACTORY