在IDEA中使用springboot访问html页面报错,

IDEA springboot 访问html。报错:Error resolving template [indexH5], template might not exist or might not

 排除其他依赖的引入和配置,这个报错的原因是: yml中 模板引擎的calsspath:,这个文件夹必须要放在resources下面。

IDEA springboot 访问html。报错:Error resolving template [indexH5], template might not exist or might not

 ,正确的做法

IDEA springboot 访问html。报错:Error resolving template [indexH5], template might not exist or might not

再次进行访问,正确: 

IDEA springboot 访问html。报错:Error resolving template [indexH5], template might not exist or might not

相关文章: