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

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

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

 ,正确的做法

再次进行访问,正确: 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章