|
@@ -10,9 +10,6 @@ import org.springframework.cloud.netflix.feign.EnableFeignClients;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.web.multipart.MultipartResolver;
|
|
import org.springframework.web.multipart.MultipartResolver;
|
|
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
|
import org.springframework.web.multipart.commons.CommonsMultipartResolver;
|
|
-import org.springframework.web.servlet.config.annotation.CorsRegistry;
|
|
|
|
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
|
|
|
|
import com.qmth.cqb.utils.GridFSUtil;
|
|
import com.qmth.cqb.utils.GridFSUtil;
|
|
|
|
|
|
@@ -43,14 +40,4 @@ public class App {
|
|
resolver.setMaxUploadSize(200 * 1024 * 1024);// 上传文件大小 50M 50*1024*1024
|
|
resolver.setMaxUploadSize(200 * 1024 * 1024);// 上传文件大小 50M 50*1024*1024
|
|
return resolver;
|
|
return resolver;
|
|
}
|
|
}
|
|
-
|
|
|
|
- @Bean
|
|
|
|
- public WebMvcConfigurer corsConfigurer() {
|
|
|
|
- return new WebMvcConfigurerAdapter() {
|
|
|
|
-
|
|
|
|
- public void addCorsMappings(CorsRegistry registry) {
|
|
|
|
- registry.addMapping("/**");
|
|
|
|
- }
|
|
|
|
- };
|
|
|
|
- }
|
|
|
|
}
|
|
}
|