Ao executar o comando curl no Windows eu recebo uma mensagem de erro:
Comando
curl -X POST -H "Content-type: application/json" -d '{"text":"Olá aluno de Android!!!","id":123}' http://localhost:8080/polling
Erro
{"timestamp":1485654257824,"status":400,"error":"Bad Request","exception":"org.springframework.http.converter.HttpMessageNotReadableException","message":"Could not read document: Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: java.io.PushbackInputStream@2723b0b6; line: 1, column: 2]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character (''' (code 39)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: java.io.PushbackInputStream@2723b0b6; line: 1, column: 2]","path":"/polling"}