title: Spring boot thymeleaf display of productName
body: <p>I want to display of my productName, but there is Error as:</p>
  
  <pre><code>ERROR 10464 --- [nio-8080-exec-6] org.thymeleaf.TemplateEngine             
  : [THYMELEAF][http-nio-8080-exec-6] Exception processing template 
  "/productView/productPage": An error happened during template parsing 
  (template: "class path resource 
  [templates//productView/productPage.html]")
  
  org.thymeleaf.exceptions.TemplateInputException: An error happened 
  during template parsing (template: "class path resource 
  [templates//productView/productPage.html]")
  
  
  
  @Controller
  public class ProductController {
  
  @Autowired
  private ProductService productService;
  
  @GetMapping("productAdmin")
  public String next(Model model){
      model.addAttribute("eProduct",new Product());
      return "/adminView/productAdmin";
  }
  
  @GetMapping("/productPage")
  public String productPage(){
      return "/productView/productPage";
  }
  
  
  @PostMapping("/saveProduct")
  public String save(@ModelAttribute("eProduct")  Product product, BindingResult result,
                     @RequestParam("pathImage") MultipartFile multipartFile ){
      String path = System.getProperty("user.home") + File.separator + "projectImages\\";
  
      try {
          multipartFile.transferTo(new File(path + multipartFile.getOriginalFilename()));
      } catch (IOException e) {
          e.printStackTrace();
      }
      product.setPathImage("\\images\\" + multipartFile.getOriginalFilename());
      productService.save(product);
      return "/mainView/index";
  }
  
  @GetMapping("/products")
  public String products(Model model){
      model.addAttribute("products",productService.findAll());
      return "/productView/products";
  }
  
  @GetMapping("/product-{id}")
  public String productPage(@PathVariable("id") int id, Model model){
      Product product = productService.findOne(id);
      model.addAttribute("product",product);
      return "/productView/productPage";
  }
  
  }
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en" xmlns:th="http://www.thymeleaf.org"&gt;
   &lt;head&gt;
  &lt;meta charset="UTF-8"/&gt;
  &lt;title&gt;Title&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
   Product Page
  &lt;p&gt;&lt;span th:text="${product.productName}"/&gt;&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But I don't reason of this issue.
  In spring I write <p>${product.productName}</p> and my code was working good.But in this situation I don't understand what I do wrong. 
  Could you please help me with this problem. Because I don't know what to do next, I tried to do myself but it did not work out.</p>
  
  <p>Thank you.</p>