1. 问题描述 springboot启动后没有进入index页面 2. 解决方法 加入下列代码: spring: resources: # 参数是String[],可以指定多个 static-locations: classpath:/templates/,classpath:/static/