spring - Using integer as a parameter for POST HTTP request -


is possible use simple types, such integer, body http post request? have example:

  public void settimeout(@requestbody integer value) {       storage.settimeout(value);   } 

but unable send request trigger successfully.

i think annotation need @modelattribute instead of @requestbody that

public void settimeout(@modelattribute integer value) {       storage.settimeout(value);   } 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -