spring中的标签笔记

1.mime-mapping是web.xml中的一个节点,用来指定对应的格式的浏览器处理方式:

    <mime-mapping>
        <extension>abs</extension>
        <mime-type>audio/x-mpeg</mime-type>
    </mime-mapping>
View Code

也可以用来配置静态页面的打开编码:

 <mime-mapping>
  <extension>html</extension> 
  <mime-type>text/html;charset=gb2312</mime-type> 
  </mime-mapping>
View Code

 2.设置首页:<welcome-file-list>

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
View Code

 3.Spring Security实现登录:http://wiki.jikexueyuan.com/project/spring-security/

posted on 2017-11-18 10:56  活在当下L  阅读(95)  评论(0编辑  收藏  举报

导航