更新时间:2023-11-17 23:31:34
模板的默认百里香叶前缀(属性:spring.thymeleaf.prefix)为:classpath:/templates/
The default thymeleaf prefix (It is the property: spring.thymeleaf.prefix) for templates is: classpath:/templates/
如果您将root.html移至src/main/resources/templates,则应该可以正常工作,如果我什么都不想错过的话.
If you move your root.html to src/main/resources/templates, it should work, if I don't miss anything else.