From cf76d8b68c97fef26af9682ed895355371460da7 Mon Sep 17 00:00:00 2001 From: xiangwbs Date: Wed, 7 Mar 2018 13:20:25 +0800 Subject: [PATCH] merge --- .../java/com/xwbing/configuration/DispatcherServletConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */