title: Thymeleaf th:inline=“javascript” (Whitelabel Error Page)
body: <p>I don't know how to solve this problem</p>
  
  <p><strong>Spring-side: role.java</strong></p>
  
  <pre><code>@RequestMapping(value = "/role", method = RequestMethod.GET)
      public String role(Model model){
          List&lt;Role&gt; list=rImp.list();
          model.addAttribute("data",list);
          return "role";      
      }  
  </code></pre>
  
  <p><strong>So if I now try inline="javascript":</strong></p>
  
  <pre><code>  &lt;script type="text/javascript" th:inline="javascript"&gt;
      /*&lt;![CDATA[*/
         var List = /*[[${data}]]*/;
        /*]]&gt;*/
      &lt;/script&gt;
  </code></pre>
  
  <p><strong>when i run it i get this response:</strong> </p>
  
  <blockquote>
    <p>Whitelabel Error Page</p>
  
  <pre><code>This application has no explicit mapping for /error, so you are seeing this as a fallback.
  Sun Jun 11 05:00:35 WET 2017
  There was an unexpected error (type=Internal Server Error, status=500).
  No message available
  </code></pre>
  </blockquote>