By default, where does Spring Boot expect views to be stored?

后端 未结 8 1991
盖世英雄少女心
盖世英雄少女心 2020-12-01 06:29

I\'m experimenting on re-writing my configuration-heavy, vanilla Spring MVC project using Spring Boot. I started a brand new Spring Boot project in IntelliJ using the Spring

8条回答
  •  攒了一身酷
    2020-12-01 07:00

    tys, pls try to add dependency:

    
        org.springframework.boot
        spring-boot-starter-tomcat
        provided
    
    

    Reference : https://github.com/lenicliu/examples/tree/master/examples-spring-boot/examples-spring-boot-jsp

    spring.mvc.view.prefix is a relative path of webapp folder, and u can put jsp files into it.

提交回复
热议问题