yanzili 3 years ago
commit 4f6fa35070

@ -1,8 +1,9 @@
package com.anjiplus.template.gaea.business.filter; package com.anjiplus.template.gaea.business.filter;
import org.springframework.stereotype.Component; import org.springframework.context.annotation.Configuration;
import javax.servlet.*; import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
@ -10,7 +11,8 @@ import java.io.IOException;
/** /**
* Created by raodeming on 2021/6/24. * Created by raodeming on 2021/6/24.
*/ */
@Component @Configuration
@WebFilter(filterName = "CorsFilter ")
public class CORSFilter implements Filter { public class CORSFilter implements Filter {
@Override @Override

@ -4,7 +4,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>海通物流</title> <title>AJ-Report</title>
</head> </head>
<body> <body>

Loading…
Cancel
Save