freemark项目在myEclipse2017下启动报错的问题解决

在基于Freemarker框架的项目中,启动后访问出现语法错误提示。具体为在pc/frm_list.html模板第1行第31列遇到-,但期望找到=。解决方案是在MyEclipse2017中取消服务器的CodeLive选项,重新访问项目即可恢复正常。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.问题描述: clone了基于freemark框架的的项目代码在myEclipse2017下启动访问后报错提示:
严重: Servlet.service() for servlet [dispatcher] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.context.ApplicationContextException: Failed to parse FreeMarker template for URL [pc/frm_list.html]; nested exception is freemarker.core.ParseException: Syntax error in template “pc/frm_list.html” in line 1, column 31:
Encountered “-”, but was expecting:
“=”] with root cause
freemarker.core.ParseException: Syntax error in template “pc/frm_list.html” in line 1, column 31:
Encountered “-”, but was expecting:
“=”
截图如下:
在这里插入图片描述
2.问题解决办法
右击服务器,取消掉CodeLive 的勾选,再重新访问项目,一切正常。
在这里插入图片描述
文章参考:https://my.oschina.net/u/2302435/blog/1527081 感谢作者~

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值