how to configure 'dispatcherServlet' load on startup by spring boot?

前端 未结 3 882
暖寄归人
暖寄归人 2021-02-08 11:29

I use spring-boot-starter-parent as parent and add spring-boot-starter-web as denpendency.

By add the @SpringBootApplication annot

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-08 12:20

    New reply to old post. Seems this is easier to do with more recent versions of Spring Boot. Just adding the property spring.mvc.servlet.load-on-startup=1 works for me.

提交回复
热议问题