1
我正在关注http://www.javaworld.com/article/2075966/core-java/start-up-the-velocity-template-engine.html教程。Apache速度:org.apache.velocity.exception.ResourceNotFoundException
我已将我的vm
文件保存在与我的课程相同的文件夹中。我得到以下异常:
Exception in thread "main" org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource
由于velocity
文件说,我需要JSP/servlet
支持,我不会有现在。
我哪里错了?
PS:我使用IntelliJ IDE
确保模板是在工作目录这可能是根你的模块在IntelliJ中。通过单击“运行”菜单中的“编辑配置”,仔细检查运行时配置。 –