1.增加mvc支持,一定要注意这种台阶式的配置文件格式,,,(里面还有空格的坑),一定要严格对照

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

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.SpringBoot增加jsp页面支持,Error resolving template template might not exist or might not be accessible

4.页面在webapp下即可

相关文章:

  • 2021-12-03
  • 2021-04-22
  • 2021-09-01
  • 2021-05-09
  • 2022-01-09
  • 2021-11-28
  • 2021-08-15
猜你喜欢
  • 2021-09-30
  • 2021-04-16
  • 2021-10-14
  • 2021-05-16
  • 2021-12-07
  • 2021-10-27
  • 2021-07-19
相关资源
相似解决方案