背景 springboot可以按以下配置项目启动后输入“/”的跳转页面,(Maven构建)访问resources的templates下的index.html资源。启动后报404错误。 @SpringBootApplication public class DemoApplication implements WebMvcConfigurer { public static void main(String[] args) { SpringApplication.