0
현재 spark-java를 사용하여 웹 사이트를 동적으로 생성하고 있습니다. 다음과 같이Spark가있는 Velocity Template Engine
내 폴더 구조는 다음과 같습니다
FATAL: ResourceManager : unable to find resource 'test.vm' in any resource loader.
그러나 페이지를로드하려고, 난이 오류가 발생합니다. 내 코드는 다음과 같습니다 :
get("/helloworld", (req, res) -> {
Map<String, Object> model = new HashMap<String, Object>();
model.put("test", "Hey there :)");
return new ModelAndView(model, "test.vm");
}, new VelocityTemplateEngine());
페이지없이 속도없이로드됩니다. 아무도 내가 이것을 올바르게 설정할 수 있도록 도와 줄 수 있습니까?