qq_14853517
qq_14853517
2017-06-01 04:03

maven项目报错Encountered "-", but was expecting: "="]

  • freemarker
  • maven
  • 开发工具
  • 操作系统

同一个项目组的,别人的项目就可以启动并且正常运行。真的不知道到底是哪里出了问题。开发工具,换了好几个版本。用了me6.5,2017.都是报这个错
别的tomcat 。maven版本。jdk。都是一样的。
唯一的不同。。和他们操作系统不一样,,千万不要跟我说让我重新装个win7.。。那我会崩溃的。。
在网上搜索同样的问题,别人说是什么编码的关系。我已经把所有我能改的编码都改成了UTF-8,还是不可以。
求大神解救

Servlet.service() for servlet [springmvc] in context with path [/shopPlat] threw exception [Request processing failed; nested exception is org.springframework.context.ApplicationContextException: Failed to parse FreeMarker template for URL [swms/swmssys/system/unit.html]; nested exception is freemarker.core.ParseException: Parsing error in template "swms/swmssys/system/unit.html" in line 1, column 41:
Encountered "-", but was expecting:
"="] with root cause
freemarker.core.ParseException: Parsing error in template "swms/swmssys/system/unit.html" in line 1, column 41:
Encountered "-", but was expecting:
"="
at freemarker.core.FMParser.generateParseException(FMParser.java:4672)
at freemarker.core.FMParser.jj_consume_token(FMParser.java:4543)
at freemarker.core.FMParser.Include(FMParser.java:1681)
at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:2361)
at freemarker.core.FMParser.Content(FMParser.java:2593)
at freemarker.core.FMParser.OptionalBlock(FMParser.java:2761)
at freemarker.core.FMParser.Root(FMParser.java:2933)
at freemarker.template.Template.(Template.java:193)
at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:419)
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:330)
at freemarker.cache.TemplateCache.getTemplate(TemplateCache.java:205)
at freemarker.template.Configuration.getTemplate(Configuration.java:740)
at freemarker.template.Configuration.getTemplate(Configuration.java:673)
at org.springframework.web.servlet.view.freemarker.FreeMarkerView.getTemplate(FreeMarkerView.java:351)
at org.

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答