thymeleaf : EL1050E The arguments (...) for the constructor call are missing

<a href="list.html" th:href="${#strings.replace(new.href,'{page}',1)}" >MORE+</a>

这段代码执行时会发生错误,如题。

原因在于:new.href 使用java 的关键字,把new改成news后就不再报错。

posted @ 2017-10-20 18:37  huiy_小溪  阅读(510)  评论(0编辑  收藏  举报