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

时间:2024-03-27 14:32:06

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:
“=”
截图如下:
freemark项目在myEclipse2017下启动报错的问题解决
2.问题解决办法
右击服务器,取消掉CodeLive 的勾选,再重新访问项目,一切正常。
freemark项目在myEclipse2017下启动报错的问题解决
文章参考:https://my.oschina.net/u/2302435/blog/1527081 感谢作者~