[BYSX] SpringBoot项目实现分类和分标签显示
信息都有分类和标签,我们可以根据类别和标签来查找相关的数据。那么该如何实现呢?接下来,我就在springboot的项目中实现分类和分标签显示数据。信息的类别有很多,我们不可能显示所有的类别,这里只显示信息较多的类别,然后点击不用的类别显示该类别的信息。
<div class="ui segments">
<div class="ui secondary segment">
<div class="ui two column grid">
<div class="column">
分类
</div>
<div class="right aligned column">
<a href="#" target="_blank">more <i class="angle double right icon"></i></a>
</div>
</div>
</div>
<div class="ui teal segment">
<div class="ui fluid vertical menu" >
<!-- 查找信息较多的类型并展示出来 -->
<a href="#" th:href="@{/types/{id}(id=${type.id})}" target="_blank" class="item" th:each="type:${types}" >
<span th:text="${type.name}">学习日志</span>
<div class="ui teal basic left pointing label" th:text="${#arrays.length(type.newsList)}">13<