diff --git a/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java b/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java index 238e46a..27fed3c 100644 --- a/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java +++ b/boot-web/src/main/java/com/xwbing/configuration/DispatcherServletConfig.java @@ -83,10 +83,11 @@ public class DispatcherServletConfig extends WebMvcConfigurerAdapter { .allowCredentials(true) .allowedMethods("GET", "POST", "DELETE", "PUT", "OPTIONS") .maxAge(3600); + super.addCorsMappings(registry); } /** - * 扩展消息转换器,增加fastjson + * 扩展消息转换器,增加fastJson * * @param converters */