我们可以在Springboot应用程序的模板包中制作文件夹吗?

发布于 2025-01-26 18:11:09 字数 103 浏览 3 评论 0原文

我一直从事虚拟Web应用程序,并且模板中有很多HTML文件,我想组织。当我将它们保存在templete内的文件夹中时,我会遇到错误,这是什么过程?

我正在使用胸腺和跳靴进行应用。

I have been working on dummy Web application, and there are lot html file in template which I want to organize. I am getting an error when I have keeping them in folder inside Templete, what is the procedure for that?

I am using thymleaf and SpringBoot for my application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟花易冷人易散 2025-02-02 18:11:09

您如何将这些模板称为子文件夹?
应该是这样的:

@RequestMapping("/endpoint")
public String getMyPageItem() {
    return "my-folder/folder/item";
}

其中my-folder内部/resources/semplates/item is iteg> item.html file

How do you call those templates in sub-folders?
Should be like this:

@RequestMapping("/endpoint")
public String getMyPageItem() {
    return "my-folder/folder/item";
}

where my-folder inside /resources/templates/ and item is item.html file

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文