zoukankan      html  css  js  c++  java
  • jboss4.2.3禁用http put/delete等请求

    在应用的web.xml中配置如下信息:

    <security-constraint>
    
        <web-resource-collection>
    
           <web-resource-name>NoAccess</web-resource-name>
    
           <url-pattern>/*</url-pattern>   
    
        </web-resource-collection>   
    
        <auth-constraint/>
    
    </security-constraint>
    
    <security-constraint> 
    
        <web-resource-collection>    
    
            <web-resource-name>AllowedMethods</web-resource-name>    
    
            <url-pattern>/*</url-pattern>    
    
              <http-method>GET</http-method>
    
             <http-method>POST</http-method>
    
             <http-method>HEAD</http-method>
    
        </web-resource-collection>
    
    </security-constraint>
    
    

    在项目中配置在当前项目中有效,如果想让jboss下所有项目都生效,则在jboss下confweb.xml中配置。

  • 相关阅读:
    填充与复制
    张量排序
    数据统计
    合并与分割
    前向传播(张量)- 实战
    数学运算
    Broadcasting
    TensorFlow2-维度变换
    集合3
    集合2
  • 原文地址:https://www.cnblogs.com/firstdream/p/5956716.html
Copyright © 2011-2022 走看看