把如下代码添加到l即可完成spring的基本配置
<filter>
  <filter-name>SetCharacterEncoding</filter-name>
  <filter-class>
    org.springframework.web.filter.CharacterEncodingFilter
  </filter-class>
  <init-param>
    <param-name>encoding</param-name>
    <param-value>UTF-8</param-value>
  </init-param>
  <init-param>
    <param-name>forceEncoding</param-name>
    <param-value>true</param-value>
  </init-param>
</filter>
<filter-mapping>
  <filter-name>SetCharacterEncoding</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>

<context-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>param name
   
    /l, /l
  </param-value>
</context-param>
<listener>
  <listener-class>
    org.t.ContextLoaderListener
  </listener-class>
</listener>

<listener>
  <listener-class>
    org.t.request.RequestContextListener
  </listener-class>
</listener>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。