项目中经常遇到的异常情况400-Bad Request401-Unauthorized403-Forbidden404-Resource not found500-Internal Server Error定制错误页面的方法在src/main/resource/templates/error/目录中增加在src/main/resource/public/error/目录中增加其中第一种方式的优先级大于第二种。参考文档spring-boot-convention-based-error-pagescustom-error-pages403-forbidden-vs-401-unauthorized-http-responses