Commit c1018c5c by yanru

增加跨域配置

parent 7ac2c2ec
...@@ -11,10 +11,7 @@ import org.slf4j.LoggerFactory; ...@@ -11,10 +11,7 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import sun.misc.BASE64Encoder; import sun.misc.BASE64Encoder;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
...@@ -28,6 +25,7 @@ import java.util.Map; ...@@ -28,6 +25,7 @@ import java.util.Map;
* @author changchao * @author changchao
* *
*/ */
@CrossOrigin
@Controller @Controller
public class LoginController { public class LoginController {
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment