403 权限限制提示页面
404 Not Found提示页面
500 服务异常提示页面
Logout 登出系统页面
这些页面主要以功能性为主,暂时不考虑美观
配置文件application.properties添加如下,修改前端页面时候不启用热加载
#修改前端资源和静态资源的时候不使用热加载
spring.devtools.restart.exclude=templates/**,static/**
文件结构如下
common.html供其他页面调用
403.html如下
<!DOCTYPE html>
<html xmlns="th=http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Forbidden</title>
</head>
<body>
<h1>Oops!!! Access Denied</h1>
<h2>你无权访问该页面</h2>
<a href="/">返回首页</a>
</body>
</html>
404.html如下
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>oops 404 for Website Template for free | Home :: w3layouts</title>
<meta h