zl程序教程

您现在的位置是:首页 >  后端

当前栏目

springboot工程添加404页面

SpringBoot 添加 页面 工程 404
2023-09-11 14:14:33 时间

 首先在/src/main/resources下创建文件夹/public/error

在文件夹里创建html页面,jsp页面不可以。

<html>
<body>
    <img src="/img/error/404.gif">
</body>
</html>

访问报错时触发