1.附件中为static方法的页面内容,移动到static下即可生效。
2.注意不要两个方法同时运行,或报错。
3.此代码实例采用java11、maven3.6.1,请在此类环境中进行运行,运行方式通过idea右键选中run即可。
没有合适的资源?快使用搜索试试~ 我知道了~
JAVA11制作的自定义404、503等web响应错误页的代码实例
共26个文件
html:10个
lst:4个
properties:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 33 浏览量
2024-03-24
14:36:37
上传
评论
收藏 24KB ZIP 举报
温馨提示
基于java11、maven3.6.1、thymeleaf制作的自定义web错误页面响应实例。通过本实例可以让你快速掌握自定义404、503等错误界面的能力。 运行说明:下载资源后,导入idea中,右键运行入口文件,点击run即可运行,默认地址为8080端口。
资源推荐
资源详情
资源评论
收起资源包目录
errorPage.zip (26个子文件)
pom.xml 3KB
src
test
java
com
errorPage
ErrorPageApplicationTests.java 230B
main
resources
application.properties 1KB
templates
error
5xx.html 1KB
4xx.html 1KB
static
index.html 108B
java
com
errorPage
ErrorPageApplication.java 337B
target
classes
application.properties 1KB
templates
error
5xx.html 1KB
4xx.html 1KB
static
error
5xx.html 450B
4xx.html 450B
index.html 108B
com
errorPage
ErrorPageApplication.class 712B
demos
web
errorPage-0.0.1-SNAPSHOT.jar 6KB
test-classes
com
errorPage
ErrorPageApplicationTests.class 540B
maven-status
maven-compiler-plugin
compile
default-compile
createdFiles.lst 41B
inputFiles.lst 80B
testCompile
default-testCompile
createdFiles.lst 46B
inputFiles.lst 85B
maven-archiver
pom.properties 121B
generated-test-sources
test-annotations
generated-sources
annotations
errorPage.iml 9KB
附件
error
5xx.html 450B
4xx.html 450B
使用说明.txt 261B
.gitignore 428B
共 26 条
- 1
资源评论
任聪聪
- 粉丝: 2w+
- 资源: 54
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功