Magnolia - FileNotFoundException to find the Template on windows

做~自己de王妃 提交于 2019-12-24 22:14:31

问题


I am following the initial Magnolia tutorial, Tutorial

While I am trying step 4 , I am getting Error

java.io.FileNotFoundException: Template"\\myTemplate\\pages\\myPage.ftl" not found.

Since I am on windows 7 I have specified teplateScript path as \myTemplate\pages\myPage.ftl (with forward slash)

What am I doing wrong here ?


回答1:


The exception suggest you used backward slash instead of forward. Try to write it with forward slash like /myTemplate/pages/myPage.ftl. Make sure file really exists in your module under this path starting from /src/main/resources. It is case sensitive so make sure cases match the real path too. If that doesn't help try to specify better what step you are failing there's step 4 in pretty much each part. Full stacktrace for exception would also help.

HTH,
Jan



来源:https://stackoverflow.com/questions/30616520/magnolia-filenotfoundexception-to-find-the-template-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!