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

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

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

相关文章: