springBoot遍歷員工列表

新建一個xml文件把頁面的公共部分抽取出來如圖: th:fragment="topbar"(thyemeleaf的語法fragment後邊定義的是別名用於th:replace="路徑名/文件名::別名(topbar)"語法的) th:class="${activeUri=='main.html'?'nav-link active':'nav-link'}"th:href="@{main.html}
相關文章
相關標籤/搜索