(1) Tomcat禁用Put等不安全方法。
1
<
security-constraint
>
2
<
web-resource-collection
>
3
<
web-resource-name
>
xxxx-Security-Constraint-0
</
web-resource-name
>
4
<
url-pattern
>
/*
</
url-pattern
>
5
<
http-method
>
PUT
</
http-method
>
6
<
http-method
>
DELETE
</
http-method
>
7
<
http-method
>
HEAD
</
http-method
>
8
<
http-method
>
OPTIONS
</
http-method
>
9
<
http-method
>
TRACE
</
http-method
>
10
</
web-resource-collection
>
11
<
auth-constraint
>
12
</
auth-constraint
>
13
</
security-constraint
>
參考文檔:? http://yingfangming.blog.163.com/blog/static/165802470201291622853362/
(2) 常見錯誤頁面定向
1
<
error-page
>
2
<
error-code
>
404
</
error-code
>
3
<
location
>
/error.jsp
</
location
>
4
</
error-page
>
5
<
error-page
>
6
<
error-code
>
500
</
error-code
>
7
<
location
>
/error.jsp
</
location
>
8
</
error-page
>
9
如果只是這樣配置IE瀏覽器不會重定向,error.jsp里面要寫上下面代碼,把response的header status code置為200.
<%
response.setStatus(
200
);
%>
?參考文檔:? http://origin100.iteye.com/blog/383460 ? 也可以設置按照異常定向。
?
(3)網站圖標
? ?更換ico圖標文件。
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061
微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元

