摘要: 跨域配置完成以后,又进行拦截器的配置,发现跨域配置失效,以下是原配置 @Configuration public class CORSConfig implements WebMvcConfigurer { @Bean public WebMvcConfigurer corsConfigurer() 阅读全文
posted @ 2023-03-01 16:29 唏嘘- 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 进行文件上传测试时候: org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException: The field file exceeds its maximum permitted size of 阅读全文
posted @ 2023-03-01 16:23 唏嘘- 阅读(272) 评论(0) 推荐(0) 编辑
摘要: // 拦截所有请求,通过判断token是否合法来决定是否需要登录 registry.addInterceptor(jwtInterceptor()). addPathPatterns("/**"). excludePathPatterns( "/api/sysUser/login", "/api/s 阅读全文
posted @ 2023-03-01 16:21 唏嘘- 阅读(819) 评论(0) 推荐(0) 编辑