title: What difference between a thymeleaf and ajax when importing data?
body: <pre><code>          $.ajax({
              url: "",
              method: "",
              data: { },
              success: function(data) {
                ~~~~
              }
            });
  </code></pre>
  
  <pre><code>// controller
  // ...
  model.addAttribute("user", userDTO);
  // ...
  
  // html(thymeleaf)
  ${user.name}
  
  </code></pre>
  
  <p>When importing data, what is the difference between the above two cases?</p>