У меня есть контроллер Spring Boot, который возвращает список объектов, и я использую thymeleaf для отображения записей в html с кодом ниже:
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="ISO-8859-1">
<title>AllRecords</title>
</head>
<body>
<h3>Showing all records</h3>
<table border="1">
<tr>
<td>Title</td>
<td>Publised At</td>
<td>Author</td>
</tr>
<tr th:each="news : ${newsList}">
<td th:text="${news?.title}">Title</td>
<td th:text="${news.publishedAt}">Publised At</td>
<td th:text="${news?.author}">Author</td>
</tr>
</table>
</body>
</html>
Thymeleaf не удалось проанализировать " ОпубликовалAt , показанная ниже ошибка
Caused by: org.thymeleaf.exceptions.TemplateProcessingException:
Exception evaluating SpringEL expression: "news.publishedAt" (template: "showNews" - line 19, col 8)
at org.thymeleaf.spring5.expression.SPELVariableExpressionEvaluator.evaluate(SPELVariableExpressionEvaluator.java:290)
at org.thymeleaf.standard.expression.VariableExpression.executeVariableExpression(VariableExpression.java:166)
at org.thymeleaf.standard.expression.SimpleExpression.executeSimple(SimpleExpression.java:66)
at org.thymeleaf.standard.expression.Expression.execute(Expression.java:109)
выглядит так, как будто не работают буквы верблюжьих букв. Не знаю, как ее решить.
Заранее спасибо.