spring security - Undefined attribute name (sec:authentication) -
i'm using thymleaf in spring security simple poc. below sample code in home.html file.
hello <span sec:authentication="name">user</span>!i
how rid of html warning
undefined attribute name (sec:authentication).
i duplicate namespace sec tag , html warning disappear
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org">
Comments
Post a Comment