2017-05-19 48 views
0

我正在通過POST方法動態地傳遞一個值數組。 如果我傳遞超過50個數組值,我無法處理這些數據。 我得到錯誤505.如何增加Jboss服務器中的HTTP POST大小

我瀏覽並發現它是一個Http錯誤,它指的帖子大小在這裏不好。

所以我加的屬性在我的JBoss configuarion,

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

即使在此之後,我不能夠通過數組值超過50

請給些解決方案。

這是我的代碼,在Restfull webservice中,我從角度控制器獲取數據。

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 請回復。

回答

0

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

/子系統=幅/連接器= HTTP:寫屬性(名稱=尺寸MAX-後,值= 80)