Spring boot + thymeleaf in IntelliJ: cannot resolve vars

后端 未结 8 1157
清酒与你
清酒与你 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:18

    Manually enabling it, worked for me in Intellij 2018.1.6 Ultimate Edition. Steps followed

    1. Open the Project tool window (e.g. View | Tool Windows | Project).

    2. Right-click the project or the module folder and select Add Framework Support.

    3. In the left-hand pane of the Add Frameworks Support dialog that opens, select the Thymeleaf checkbox.

    Official reference : https://www.jetbrains.com/help/idea/thymeleaf.html#0c8052be

提交回复
热议问题