我在tomcat服务器中有几个spring boot应用程序,它们提供静态资源。我希望这些应用程序具有导航栏但使用相同的布局,并且还可以选择在每个WAR的模板文件夹中使用自己的布局。
我尝试使用布局作为tomcat的静态资源但我收到此错误
template might not exist or might not be accessible by any of the configured Template Resolvers
模板存在,替换链接正确,所以我想我需要在模板解析器中包含布局。我读了this,但我不明白如何在每个WAR内部使用外部布局。