|
@@ -44,7 +44,7 @@ public class WebConfiguration implements WebMvcConfigurer {
|
|
|
@Override
|
|
|
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
|
|
registry.addResourceHandler("/file/**").addResourceLocations("file:upload/file/");
|
|
|
- registry.addResourceHandler("/docs/**").addResourceLocations("file:upload/docs/");
|
|
|
+ registry.addResourceHandler("/atta/**").addResourceLocations("file:upload/atta/");
|
|
|
registry.addResourceHandler("/template/**").addResourceLocations("file:upload/template/");
|
|
|
registry.addResourceHandler("/doc.html").addResourceLocations("classpath:/META-INF/resources/");
|
|
|
registry.addResourceHandler("/favicon.ico").addResourceLocations("classpath:/META-INF/resources/");
|
|
@@ -68,8 +68,14 @@ public class WebConfiguration implements WebMvcConfigurer {
|
|
|
"Authorization", "Access-Control-Request-Method",
|
|
|
"Access-Control-Request-Headers")
|
|
|
.allowCredentials(true).maxAge(3600);
|
|
|
+// registry.addMapping("/**").allowedOriginPatterns("*")
|
|
|
+// .allowedMethods("*")
|
|
|
+// .allowedHeaders("*")
|
|
|
+// .allowCredentials(true).maxAge(3600);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// 配置响应FastJson序列化
|
|
|
@Bean
|
|
|
public MyMessageConverter converter() {
|