1. 程式人生 > >SpringBoot增加jsp頁面支援,Error resolving template template might not exist or might not be accessible

SpringBoot增加jsp頁面支援,Error resolving template template might not exist or might not be accessible

1.增加mvc支援,一定要注意這種臺階式的配置檔案格式,,,(裡面還有空格的坑),一定要嚴格對照

2.啟動類增加一個重寫的方法

@SpringBootApplication
@MapperScan("com.java.dao")
public class StartApplication  extends SpringBootServletInitializer{
	public static void main(String[] args) {
        SpringApplication.run(StartApplication.class,args);
    }
	 @Override
	    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	        return application.sources(StartApplication.class);
	    }
	
}

3.不要引入thymeleaf模板引擎,,我就是在這入了一個坑

3.

4.頁面在webapp下即可