${#request.requestURI}
<li class="nav-item" th:classappend="${#request.requestURI.equals('/test.do')}? 'active': ''"> </li>