title: Unexpected 'S' in Postman on consuming REST Api
body: <p>I wrote very basic REST service in SpringBootApplication. When I tried to hit the api I am getting response like <code>Unexpected 'S'</code></p>
  
  <p>This is my api,</p>
  
  <pre><code>@RestController
      @RequestMapping(value="/rally")
      public class CreateProjectApi {
  
          @RequestMapping(value = "/createProject", 
                  produces = { "application/json" }, 
                  consumes = { "application/json" }, 
                  method = RequestMethod.GET)
          public ResponseEntity&lt;String&gt; createProj() {
              String s = "Success...";
              return new ResponseEntity&lt;String&gt;(s, HttpStatus.OK);
          }
  
      }
  </code></pre>
  
  <p>This is my POM.XML,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.altimetrik.rally&lt;/groupId&gt;
      &lt;artifactId&gt;RallyRestApi&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;RallyRestApi&lt;/name&gt;
      &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.5.4.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- Setup Spring MVC &amp; REST, use Embedded Tomcat --&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.rallydev.rest&lt;/groupId&gt;
              &lt;artifactId&gt;rally-rest-api&lt;/artifactId&gt;
              &lt;version&gt;2.2.1&lt;/version&gt;
          &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I am hitting the api through postman with <code>content-type:application/json</code> in header. But I am getting Unexpected 'S' as response. I have followed this link <a href="https://stackoverflow.com/questions/40211597/unexpected-s-in-response-of-restful-service">unexpected &#39;s&#39; in response of restful service</a> but I didnt get any solution from that. Can anyone help me out in this?</p>