spring boot 静态资源的映射规则 (3) 欢迎页面映射

欢迎 页面映射   会从 4个静态资源目录 + 根路径 / 中 查找 index.html 页面

会在 静态资源目录下 与 根路径查找 (按该顺序) index.html页面; 收到 "/**" 请求映射

访问 localhost:8080/ 会在上面5个目录中查找 index.html 页面(因为/也属于 /** )
 
 
 
 

原文地址:https://www.cnblogs.com/guangzhou11/p/12388954.html