如图,点击hello,无法跳转到templates下的html
打开项目结构查看,发现没有mvc配置
下面是正常情况
原因及解决:创建springboot时使用了2.7.0就会有这个问题,创建时springboot选择2.6.8正常

如图,点击hello,无法跳转到templates下的html
打开项目结构查看,发现没有mvc配置
下面是正常情况
原因及解决:创建springboot时使用了2.7.0就会有这个问题,创建时springboot选择2.6.8正常