import isArray from "lodash/isArray" export function objToFormData(config) { //对象转formdata格式 let formData = new FormData(); let obj = config.data; let arrayKey = config.arrayKey; for (var i in obj) { if (isArray(obj[i])) { obj[i].map(item =>
今天想测试下线上代码,能否正常的执行未登录的拦截.所以把拦截器的代码给开放出来,但是没想到线上代码addInerceptors(InterceptorRegistry registry) 这个方法一直不被执行. @EnableWebMvc @Configuration @Slf4j public class WebConfig implements WebMvcConfigurer { @Bean public UnLoginInterceptor unLoginInterceptor(){ r