如何修复速度 ParseErrorException 词法错误
您好,我对 apache Velocity 完全陌生,我的代码中遇到 velocity.exception.ParseErrorException: Lexical error 问题,有人可以帮助我解决它吗?
这是代码
#set ($file_name = ${ctx.FILE_NAME}.split('_REPORT'))
$file_name.get(0) - Some Text
这是我遇到的错误
Caused by: org.apache.velocity.exception.ParseErrorException: Lexical error, Encountered: "s" (115), after : "." at *unset*[line 1, column 37]
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1301) ~[velocity-1.7.jar:1.7]
有人能帮我解决这个问题吗?
Hi i am totally new to apache velocity and i am having velocity.exception.ParseErrorException: Lexical error issue in my code, Can anybody help me in how to solve it?
Here is the code
#set ($file_name = ${ctx.FILE_NAME}.split('_REPORT'))
$file_name.get(0) - Some Text
And here is the error I am getting
Caused by: org.apache.velocity.exception.ParseErrorException: Lexical error, Encountered: "s" (115), after : "." at *unset*[line 1, column 37]
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1301) ~[velocity-1.7.jar:1.7]
Can anybody help me to solve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试:
或者只是:
花括号仅用于消除引用与周围文本的歧义。
Try:
Or just:
Curly braces are only here to disambiguate a reference from surrounding text.