无法在null上找到Thymeleaf Spring属性或字段''

时间:2017-05-17 15:05:17

标签: spring angular thymeleaf

我正在与Thymeleaf,Spring和Angular合作开展一个项目。我的html文件中有一个span,如下所示:

<span ng-if="isFurious == '1'" th:text="#{furious-message(${furious_bdate}, ${furious.edate)}" style="color:red;font-weight:bold;"></span>

以及相关消息属性如下:

furious-message=Object was from {0} till {1} in furious

加载页面时出现以下错误

**Whitelabel Error Page**

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


There was an unexpected error (type=Internal Server Error, status=500).
Exception evaluating SpringEL expression: "document.begin_date" (units:205)

在我的Java控制台中,我有以下错误:

Property or field 'bdate' cannot be found on null

'bdate'和'edate'来自角度控制器。

如果我做错了,请告诉我。

谢谢和问候。

0 个答案:

没有答案