SpringBoot中根据响应状态码解析对应页面

404页面:
SpringBoot中根据响应状态码解析对应页面
路径:
resource>>static >>error>>404.html

对于5xx页面
SpringBoot中根据响应状态码解析对应页面
路径:
resource>>templates >>error>>5xx.html

404页面也可以放置在templates文件下,404和5xx存放位置区别是static下存放的是静态页面,templates下存放的是可以动态变化的页面

相关文章: