最近做一个项目,自定义了404页面,本地测试可以到自定义页面,但是打包放到tomcat里面就不行。搞了一天终于看到一个比较正确的方法。下面附上连接,非常感谢各位博主们

1、https://blog.csdn.net/cckevincyh/article/details/79630182。

2、https://blog.csdn.net/loongshawn/article/details/50915979

3、https://blog.csdn.net/linzhiqiang0316/article/details/52600839