Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SpringBoot with Thymeleaf showing error but working

Using NetBeans 8.1.

I have a SpringBoot project that uses Thymeleaf as template, everything is working but in the html page when i use the tag

<html lang="en-US" xmlns:th="http://www.thymeleaf.org">

i have the error Attribute with the local name "xmlns:th" is not serializable as XML 1.0, i can use thymeleaf functions like th:each or th:text but they always show the same error and i'm not able to have suggestions when typing, is there a way to fix this ?

like image 990
Maver Avatar asked Feb 05 '23 02:02

Maver


1 Answers

Adding xmlns="http://www.w3.org/1999/xhtml" fixes the errors in netbeans. I've not been able to get suggestions to work.

<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
like image 94
Metroids Avatar answered Feb 07 '23 17:02

Metroids