gpt4 book ai didi

jakarta-ee - javax.el.E​​LException : The identifier [return] is not a valid Java identifier

转载 作者:行者123 更新时间:2023-12-05 00:03:57 30 4
gpt4 key购买 nike

我有一个页面 url,它看起来像:

http://mydomain.com/nodes/32/article/new?return=view

安装 tomcat 7 后,尝试访问它时出现此异常:

/nodes/${param.id}/article/new?return=${param.return}
contains invalid expression(s): javax.el.ELException: The identifier [return] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true.

任何想法为什么我得到那个?要修复它,我应该只在 tomcat 中更改此属性吗?

最佳答案

return是 Java Programming Language(tm) 中的保留关键字。但幸运的是,还有另一种拼写。试试 param['return']反而。

关于jakarta-ee - javax.el.E​​LException : The identifier [return] is not a valid Java identifier,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6233473/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com