title: Spring Boot How to Convert the return Date to String
body: <p>No converter found for return value of type: class java.time.LocalDateTime</p>
  <pre><code> @RequestMapping(&quot;/hello2&quot;)
      @ResponseBody
      public LocalDateTime handleRequest2(@RequestParam @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)LocalDateTime dateTime) throws Exception {
  
          return dateTime;
      }
  </code></pre>
  <p>(well ,i konw can write the return type as String) ,i guess spring framework have an util whic can convert an object to string , i just want to know how can i do ,to make the datetime convert string json.</p>