gpt4 book ai didi

java - Spring boot 2.1 error.html 页面不显示

转载 作者:行者123 更新时间:2023-11-30 12:07:30 25 4
gpt4 key购买 nike

<分区>

我正在使用 spring-boot 2.1.3,我想添加一个错误页面作为后备。我尝试在 templates 文件夹下添加一个 error.html 但它没有用。

还尝试添加 ErrorController 并为每种错误类型分类页面,但它也没有用。

我还应该进行其他配置吗?

提前致谢。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com