NutzCN Logo
问答 beetl模板找不到,jar包部署的
发布于 2078天前 作者 qq_297125b4 2331 次浏览 复制 上一个帖子 下一个帖子
标签:

用的hotplug,jar包部署后模板怎么都找不到。。
文件路径是:src/main/resources/template/views/test.html
生成的class路径:classes\views\test.html

这两个参数换了几种都不行,应该写什么
RESOURCE_LOADER=
RESOURCE.root=

6 回复

pom里用了动态的配置文件,
所以有个这个配置:

src/main/resources/template
true

所以在class路径是这个:classes\views\test.html

配置,,

<resource>
		        <directory>src/main/resources/template</directory>
		        <filtering>true</filtering>
		    </resource>

我现在把resource配置去掉了,但还是不行
路径:src/main/resources/template
代码:@Ok("beetl:test.html")
配置:RESOURCE.root=template/views

用ClasspathResourceLoader可以了,前面的问题是:
@Ok("beetl:test.html")加了斜杠就可以了@Ok("beetl:/test.html")
,但是用HotplugResourceLoader不行。。。会提示找不到

这方式就不是hotplug

添加回复
请先登陆
回到顶部