title: Display a String in a view returned by a Spring Boot Thymeleaf controller
body: <p>I am struggling with my view, I need to display the return of my API function on my view:</p>
  
  <blockquote>
    <p><strong>Spring Controller Code</strong></p>
  </blockquote>
  
  <pre><code>@Controller
  public class mainController {
  
    @RequestMapping(value = {"/"}, method = RequestMethod.GET)
    public String index() throws IOException, GeneralSecurityException {
      DriveQuickstart drive = new DriveQuickstart("c:/temp/credentials.json");
      String res = drive.checkFile("cwg");
  
      return res;
  </code></pre>
  
  <p><code>drive.checkFile</code> is an API function which returns a <code>String</code>.</p>
  
  <p>I need to display it on my view <code>index.html</code>.
  thank you very mutch.</p>