Java 在Thymeleaf模板中的迭代是';行不通

Java 在Thymeleaf模板中的迭代是';行不通,java,html,spring,spring-mvc,thymeleaf,Java,Html,Spring,Spring Mvc,Thymeleaf,我试图使用Thymeleaf从模板中的语言文件中迭代一个拆分的字符串。但它不起作用 模板示例: <div class="row" th:with="SPlatform=#{platforms}"> <div class="input-field col s4" th:each="platform : ${#strings.arraySplit(SPlatform, ',')}">

我试图使用Thymeleaf从模板中的语言文件中迭代一个拆分的字符串。但它不起作用

模板示例:

                <div class="row"  th:with="SPlatform=#{platforms}">
                    <div class="input-field col s4" th:each="platform : ${#strings.arraySplit(SPlatform, ',')}">
                        <input type="checkbox" class="filled-in" th:id="platforms"> <label
                            th:for="platforms" th:text=""></label>
                    </div>
                </div>
但最后我犯了一个错误:

This application has no explicit mapping for /error, so you are seeing this as a fallback.

    Mon Aug 31 16:44:33 GST 2015
    There was an unexpected error (type=Internal Server Error, status=500).
    Could not parse as expression: "" (platform-add)
问题可能是

th:text=”“

在你的标签里面

Thymeleaf希望表达式显示一些文本

This application has no explicit mapping for /error, so you are seeing this as a fallback.

    Mon Aug 31 16:44:33 GST 2015
    There was an unexpected error (type=Internal Server Error, status=500).
    Could not parse as expression: "" (platform-add)