摘要:
Tomcat目录下,配置请求头 打开tomcat/conf/web.xml,增加如下配置 <filter> <filter-name>httpHeaderSecurity</filter-name> <filter-class>org.apache.catalina.filters.HttpHead 阅读全文
posted @ 2021-01-19 15:55 且行且思 阅读(5188) 评论(0) 推荐(0)
|
|||
|
摘要:
Tomcat目录下,配置请求头 打开tomcat/conf/web.xml,增加如下配置 <filter> <filter-name>httpHeaderSecurity</filter-name> <filter-class>org.apache.catalina.filters.HttpHead 阅读全文
posted @ 2021-01-19 15:55 且行且思 阅读(5188) 评论(0) 推荐(0)
摘要:
1、首先准备一个自定义的404html页面。博主是在益播网站上复制的404页面。 2、找到tomcat目录下的conf目录下的web.xml文件,添加内容: <error-page> <error-code>404</error-code> <!--错误码--> <location>/error40 阅读全文
posted @ 2021-01-19 11:55 且行且思 阅读(4143) 评论(0) 推荐(0) |
|||