-
静态资源(xx.html,.css,.js,favicon.ico)请求会被直接映射到resources/static文件夹下
-
非静态资源请求走前端控制器(DispatcherServlet),thymeleaf模板引擎对返回值拼接前缀(resources/template/),进行视图渲染
-
静态资源文件夹下的index.html页面会被
"/**"
映射,作为欢迎页 -
所有的
**/favicon.ico
都是在静态资源文件下找
SpringBoot对静态资源的映射
最新推荐文章于 2023-05-19 20:10:59 发布