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

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -