There was an unexpected error (type=Internal Server Error, status=500). Exception parsing document: template= I had this annoying error above today while playing around with thymeleaf. The thing is IntelliJ Idea creates html files that does not close the meta tags