The title describes the problem pretty much... In Spring Boot, when using Thymeleaf as template engine, the referenced variables in the template are marked as errors in the IntelliJ IDEA's Problem Pane. Below is a screenshot of the case:
When compiled, the template displays alright despite the problems. But it doesn't feel right to leave the reported problems in there. How can I address these unresolved symbols in the template?
The solution is quite easy. (Found the solution here - StackOverflow).
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://thymeleaf.org">
The only difference is in the namespace - just removing that 'www' infix.
Why does it do the trick? I haven't figured it out but it works and the cause is low in priority for me... and I just wanted to leave a note for myself and for anyone interested in addressing the issue.