簡體   English   中英

如何在Jboss服務器中增加Http POST大小

[英]How to increase Http POST size in Jboss server

我通過POST方法動態傳遞值數組。 如果我傳遞的數組值超過50個,則無法處理這些數據。 我收到錯誤505。

我瀏覽后發現這是一個Http錯誤,表示此處的帖子大小不好。

所以我在jboss配置中添加了屬性,

</system-properties>
<property name="org.apache.tomcat.util.http.Parameters.MAX_COUNT" value="-1"/>
    </system-properties>

即使在此之后,我也無法傳遞超過50的數組值。

請為此提供一些解決方案。

這是我在Restfull Web服務中的代碼,我從那里從角度控制器獲取數據。

this.updateConstraint = function($scope, $location, $routeParams) {
        var url = hostName + "/dcr/rest/capacityfile/searchcf/blockC/addSubFilesBlocC";
        var listSubFiles = $scope.capacityAddSubFile;
        var idCapacity = $routeParams.capacityFileId;
        var promise = $http({
            url : url,
            method : "POST",
            params :{ subFileCSF : $scope.capacityAddSubFile,
                      partConstraint : $scope.selectedPartNumberAndConstraint,
                      partConstraintAdd : $scope.selectedPartNumberAndConstraintAdd,
                capacityFileId : $routeParams.capacityFileId},

        }).success(function(data, status, headers) {

        }).error(function(data, status, headers) {
            // alert("Failed to access"+status+" "+headers);
        });
        return promise;
    };

我在這里遇到錯誤,它顯示錯誤505。請回復。

您需要在連接器級別設置max-post-size

/ subsystem = web / connector = http:write-attribute(name = max-post-size,value = 80)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM