Spring Android - POST Request - URL Encoded Params from Class Object
问题 I am trying to send some key-value pairs in Android Spring POST Request .It works correctly , if I am using a MultiValueMap<String, String> map= new LinkedMultiValueMap<String, String>(); for that. Is there any way to avoid MultiValueMap & directly send the Class Object as Request . One solution found is using Reflection , like the following for (Field field:objAuth.getClass().getDeclaredFields()){ field.setAccessible(true); map.add(field.getName(),field.get(objAuth)+""); } Code Snippet