Unable to find velocity template resources

后端 未结 12 1093
星月不相逢
星月不相逢 2020-11-29 20:11

Just a simple velocity standalone app based on maven structure. Here is the code snippet written in Scala to render the template helloworld.vm in ${basedi

12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 20:22

    You can just use it like this:

    Template t = ve.getTemplate("./src/main/resources/templates/email_html_new.vm");
    

    It works.

提交回复
热议问题