Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 百里香订购_Html_Sql Order By_Thymeleaf - Fatal编程技术网

Html 百里香订购

Html 百里香订购,html,sql-order-by,thymeleaf,Html,Sql Order By,Thymeleaf,我需要按订单显示此foreachAsc,我如何才能做到 <tr th:each="ment : ${mentor}" th:if="${ment.jobId == job.id}"> <td th:text="${ment.id}"></td> <td th:text="${ment.name}"></td> <td th:text="${ment.qtyMentee}"></td>

我需要按订单显示此
foreach
Asc
,我如何才能做到

<tr th:each="ment : ${mentor}" th:if="${ment.jobId == job.id}">
    <td th:text="${ment.id}"></td>
    <td th:text="${ment.name}"></td>
    <td th:text="${ment.qtyMentee}"></td>
    <td th:text="${ment.jobId}"></td>
</tr>

这可以通过下面描述的列表排序实用程序方法实现

范例

<tr th:each="ment : ${#lists.sort(mentor)}">

这可以通过下面描述的列表排序实用程序方法实现

范例

<tr th:each="ment : ${#lists.sort(mentor)}">

我也有StackOverflow,在我的例子中,我忘了实现:

 Comparable<E>
可比

错误是错误引导,thymeleaf可以识别出需要实现Comparable。

我也有StackOverflow,在我的情况下,我忘记了实现Comparable:

 Comparable<E>
可比

错误是错误的,thymeleaf可以识别需要实现可比较性。

好的,我尝试使用它,但tomcat返回“嵌套异常是java.lang.StackOverflowerError”,以按QTymentes排序我的列表如何做?检查此线程:好的,我尝试使用它,但tomcat返回“嵌套异常是java.lang.StackOverflower”,要按qtyMentees排序我的列表,请检查此线程: