spring mvc 404页面制作
1、404页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>维护中</title>
<style type="text/css">
* {margin: 0;padding: 0;} body{background: url(/static/img/print.png);}
.cont{text-align: center;}
a{text-decoration: none;}
.hanger{width: 317px;height: 290px;background: url(/static/img/plate.png);margin: 120px auto 0;font-family: "Microsoft YaHei";
-webkit-transform-origin: center top;
-moz-transform-origin: center top;
transform-origin: center top;
-webkit-animation: error-swing infinite 2s ease-in-out alternate;
-moz-animation: error-swing infinite 2s ease-in-out alternate;
animation: error-swing infinite 2s ease-in-out alternate
}
.error{font-size: 30px;width: 100%;margin-top:120px;display: inline-block;}
.error404{font-size: 48px;margin-top: 12px;display: inline-block;width: 100%;}
.notfound{margin: 48px 0 0 8px;font-size: 24px;color: #d00;}
.testfint{margin: 16px 0 0 3px;font-size: 14px;}
.btn{display: inline-block;background: #a6d037;color: #fff;padding:6px 10px;border-radius: 4px;margin-top: 12px;font-size: 12px;} @-webkit-keyframes error-swing {
0% {-webkit-transform: rotate(1deg) }
100% {-webkit-transform: rotate(-2deg) }
}
@-moz-keyframes error-swing {
0% {-moz-transform: rotate(1deg) }
100% {-moz-transform: rotate(-2deg) }
}
@keyframes error-swing {
0% {transform: rotate(1deg) }
100% {transform: rotate(-2deg) }
}
</style>
</head>
<body>
<div class="cont">
<div class="hanger">
<span class="error">抱歉</span>
<span class="error404">维护中</span>
</div>
<p class="notfound">很抱歉,系统正在维护中!</p>
<p class="testfint">开放时间可能视维护情况有所调整</p>
<a href="http://www.liyingjituan.com" target="_blank" class="btn backhome">去这里看看</a>
<a href="javascript:location.reload()" class="btn refresh">刷新本站</a>
</div>
</body>
</html>
2、print.png图片

3、plate.png图片

4、404效果图

spring mvc 404页面制作的更多相关文章
- Spring MVC 向页面传值-Map、Model和ModelMap
原文链接:https://www.cnblogs.com/caoyc/p/5635878.html Spring MVC 向页面传值-Map.Model和ModelMap 除了使用ModelAndVi ...
- Spring MVC 向页面传值-Map、Model、ModelMap、ModelAndView
Spring MVC 向页面传值,有4种方式: ModelAndView Map Model ModelMap 使用后面3种方式,都是在方法参数中,指定一个该类型的参数. Model Model 是一 ...
- Spring MVC 向页面传值-Map、Model和ModelMap https://www.cnblogs.com/caoyc/p/5635878.html
Spring MVC 向页面传值-Map.Model和ModelMap 除了使用ModelAndView方式外.还可以使用Map.Model和ModelMap来向前台页面创造 使用后面3种方式,都是在 ...
- Spring MVC错误页面配置
当前SpringMVC非常流行,在大多数情况,我们都需要自定义一些错误页面(例如:401, 402, 403, 500...),以便更友好的提示.对于spring mvc,这些当然是支持自定义的,sp ...
- Spring MVC中页面向后台传值的几种方式
在学习 Spring Mvc 过程中,有必要来先了解几个关键参数: @Controller: 在类上注解,则此类将编程一个控制器,在项目启动 Spring 将自动扫描此类,并进行对 ...
- Spring MVC - 静态页面
环境搭建 以下示例显示如何使用Spring MVC Framework编写一个简单的基于Web的应用程序,它可以使用<mvc:resources>标记访问静态页面和动态页面.首先使用Int ...
- Spring MVC静态页面
以下示例显示如何使用Spring MVC Framework编写一个简单的基于Web的应用程序,它可以使用<mvc:resources>标记访问静态页面和动态页面.首先使用Eclipse ...
- spring mvc 默认页面
只需要在servlet.xml页面中添加如下配置: <mvc:view-controller path="/" view-name="login"/> ...
- spring mvc 获取页面日期格式数据
1.传递日期参数: 解决办法: 实体类日期属性加 @DateTimeFormat(pattern="yyyy-MM-dd") 注解 beans中加 <mvc:annotati ...
随机推荐
- C#将XML转换成JSON 使用 JavaScript 将 XML 转成 JSON
如何在ASP.NET中用C#将XML转换成JSON [JavaScript]代码 // Changes XML to JSON function xmlToJson(xml) { // Create ...
- 【译】Surface中你也许不知道的五件事
Bring up the Quick Link Menu - Select the Windows Key + X or right click the Start Button to bring u ...
- URL中文编码
/// <summary> /// GB2312编码 /// </summary> /// <param name=" ...
- hdu 3910 Liang Guo Sha
题目链接:hdu 3910 Liang Guo Sha 题目大意:Alice和Bob这两个小伙伴又发明了一种新游戏, 叫两国杀, 每个人手上有两张牌,“杀” 和“闪”, 然后有三个数值A,B和C, 当 ...
- Python自动化开发 - 装饰器
本节内容 一.装饰器导引 1.函数对象特性 2.扩展业务功能需求 3.各种解决方案 二.装饰器解析 1.装饰器基本概念 2.无参装饰器解析 一.装饰器导引 1.函数对象特性 #### 第一波 #### ...
- PhantomJS快速入门-无界面浏览器
https://blog.csdn.net/libsyc/article/details/78199850 PhantomJS快速入门 本文简要介绍了PhantomJS的相关基础知识点,主要包括Pha ...
- 代码面试集锦 1 - Uber
Given an array of integers, return a new array such that each element at index i of the new array is ...
- ModelValidator基于元数据的验证
ModelValidator主要是应用在ModelMetadata元数据的类型上或类型属性上.它是验证的基础类型,所有的ModelValidatorProviders.DataAnnotationVa ...
- Spring IOC 容器源码分析系列文章导读
1. 简介 Spring 是一个轻量级的企业级应用开发框架,于 2004 年由 Rod Johnson 发布了 1.0 版本.经过十几年的迭代,现在的 Spring 框架已经非常成熟了.Spring ...
- dapper视频
dapper是dotnet下的一种小巧快捷的ORM框架,本视频主要讲解了dapper的多库使用,以及常见的操作,如:对象查询.多集合查询,关联查询等,添加.修改.删除等. 视频地址:https://w ...