Spring boot doesn't map folder requests to `index.html` files

前端 未结 4 1165
一个人的身影
一个人的身影 2021-01-01 11:58

I\'ve got static folder with following structure:

index.html
docs/index.html

Spring Boot correctly maps reque

4条回答
  •  暖寄归人
    2021-01-01 12:19

    It's not Spring Boot mapping to index.html it's the servlet engine (it's a welcome page). There's only one welcome page (per the spec), and directory browsing is not a feature of the containers.

提交回复
热议问题