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

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -