스프링강의처럼 navbar를 아예 nav.html로 뺀다음 th:replace를 이용해서 navbar를 만들었는데
<span sec:authentication="principal.username"></span>에서
username 대신에 현재 유저의 displayName을 보여주려면 어떻게 해야할까요?
nav.html이 접속하려는 html 파일이면 model.addAttribute로 displayName을 nav.html로 넘길텐데
직접 nav.html로 접속하는게 아니다 보니 model 방법으로 구현하기 어려운 거 같습니다. 다른 방법이 있을까요?