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后就不再报错。

原文地址:https://www.cnblogs.com/huiy/p/7701015.html