From 51cc51c0bcb069792bac29ffd8835897f9f642b1 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Thu, 24 Jun 2021 16:07:45 +0800 Subject: [PATCH 1/2] cors --- .../anjiplus/template/gaea/business/filter/CORSFilter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java index 42d50061..9064e76f 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/CORSFilter.java @@ -1,8 +1,9 @@ package com.anjiplus.template.gaea.business.filter; -import org.springframework.stereotype.Component; +import org.springframework.context.annotation.Configuration; import javax.servlet.*; +import javax.servlet.annotation.WebFilter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; @@ -10,7 +11,8 @@ import java.io.IOException; /** * Created by raodeming on 2021/6/24. */ -@Component +@Configuration +@WebFilter(filterName = "CorsFilter ") public class CORSFilter implements Filter { @Override From 12d2a4f9f1568b664838329deb26a210876ff79b Mon Sep 17 00:00:00 2001 From: qianming Date: Thu, 24 Jun 2021 16:47:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?title=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report-ui/index.html b/report-ui/index.html index db342f75..f2b32ba1 100644 --- a/report-ui/index.html +++ b/report-ui/index.html @@ -4,7 +4,7 @@ - 海通物流 + AJ-Report