SpringBoot2.3.1关于定制错误页面及数据DefaultErrorAttributes
DefaultErrorAttributes.getErrorAttributes();默认进行数据处理的@Componentpublic class MyErrorAttributes extends DefaultErrorAttributes { @Override public Map<String, Object> getErrorAttributes(WebRequest webRequest, ErrorAttributeOptions options) {
原创
2020-07-23 12:42:56 ·
918 阅读 ·
0 评论