我们可以在Spring Boot应用程序的模板包中创建文件夹吗?

Can we make folder inside template package of SpringBoot Application?

我一直在开发虚拟 Web 应用程序,模板中有很多 html 文件需要整理。当我将它们保存在 Templete 内的文件夹中时出现错误,该过程是什么?

我正在为我的应用程序使用 thymleaf 和 SpringBoot。

如何在 sub-folders 中调用这些模板? 应该是这样的:

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

其中 /resources/templates/item 中的 my-folderitem.html 文件