Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.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
Java 如何访问thymeleaf块中的对象?_Java_Thymeleaf - Fatal编程技术网

Java 如何访问thymeleaf块中的对象?

Java 如何访问thymeleaf块中的对象?,java,thymeleaf,Java,Thymeleaf,我将显示一个表内容,如下所示。特别注意*{id}如何自动映射到行内容: 它是 参见thymeleaf文档中的示例:它是 <td th:text="*{#temporals.format(thedate, 'yyyy-MM-dd HH:mm:ss')}"> 参见thymeleaf文档中的示例:您是否尝试了th:with?th:with=“withdate=*{thedate}”确实有效,但我想在没有th:with的情况下实现同样的效果。您是否尝试了th:with?th:wi

我将显示一个表内容,如下所示。特别注意
*{id}
如何自动映射到
内容:


它是


参见thymeleaf文档中的示例:

它是

<td th:text="*{#temporals.format(thedate, 'yyyy-MM-dd HH:mm:ss')}">


参见thymeleaf文档中的示例:

您是否尝试了
th:with
th:with=“withdate=*{thedate}”
确实有效,但我想在没有
th:with
的情况下实现同样的效果。您是否尝试了
th:with
th:with=“withdate=*{thedate}”
确实有效,但是我想在没有
th:with
的情况下实现同样的效果。。
<td th:text="*{#temporals.format(thedate, 'yyyy-MM-dd HH:mm:ss')}">