老师,我的error.html文件放在templates目录下访问报404,要放在static目录下才能访问,这个怎么处理呢
: : : classpath:/static,classpath:/template
在application.yml文件中加上以上配置,就可以访问到了。