Spring boot + thymeleaf in IntelliJ: cannot resolve vars

后端 未结 8 1158
清酒与你
清酒与你 2021-02-05 02:44

I\'m writing a short web form application using spring boot and thymeleaf on IntelliJ, but it seems that in the html file, all fields in the model cannot be resolved. Here is my

8条回答
  •  迷失自我
    2021-02-05 03:16

    I had two different portions of code: the first was showing the error and the second was not doing it. I observed that there is a difference in the xmlns:th attribute.

    First Page: Not working!

    
    

    Second Page: Working!

    
    

    I removed the www. and it works for me!

提交回复
热议问题