NutzCN Logo
问答 nutzboot 404 未识别到配置是什么原因呢
发布于 1645天前 作者 Hamming 1336 次浏览 复制 上一个帖子 下一个帖子
标签:

nutzboot 404

HTTP Status 404 – Not Found
Type Status Report

Message /index/test

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/8.5.43
#项目启动端口
server.port=8080
server.host=0.0.0.0
http.host=0.0.0.0
#tomcat.port=8090
#tomcat.host=0.0.0.0
tomcat.page.404=/error/404.html
tomcat.page.500=/error/500.html
tomcat.page.403=/error/unauth.html
jetty.threadpool.idleTimeout=60000
jetty.threadpool.minThreads=4
jetty.threadpool.maxThreads=8
jetty.page.404=/error/404.html
jetty.page.500=/error/500.html
jetty.page.403=/error/unauth.html
druid.web.filter.principalSessionName=sid

配置了 404 页面 但是返回 tomcat 的404

10 回复

试一试demo,我记得有人问过,我也测过的样子

本地404是没有问题 部署正式环境就有问题 是路径不对吗

/src/main/resources/static/error/404.html

部署目录下有static文件夹吗?

服务器 访问 /error/404.html 页面能访问

static文件夹里面也放这些文件了吗?奇怪了

static放了静态资源文件/src/main/resources/static/assets
css js img
另外就是 error页面

可能是tomcat starter里面找资源的那个逻辑没对

不过也奇怪,直接访问ok,费解

看看nutzwk 咋做的

貌似 差不多 没发现不一样

添加回复
请先登陆
回到顶部