springboot的错误页面设置

来源:互联网 发布:mac vpn推荐 编辑:程序博客网 时间:2024/04/29 16:14
  1. 在resources目录下新建public/error目录

  2. 建立错误页面 
     -resources 
      |-public 
        |- error 
         |-400.html 
         |-404.html 
         |-500.html