Commit e53a7b84c14f5dee39f3fb421bcb5fe17d163779

Authored by changpengfei
1 parent 5658f4ede8
Exists in master and in 1 other branch dev

OPTIONS 跨越请求问题

Showing 1 changed file with 1 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/UserContoller.java View file @ e53a7b8
... ... @@ -38,7 +38,7 @@
38 38 @Autowired
39 39 private LymsUserMapper lymsUserMapper;
40 40  
41   - @RequestMapping("login")
  41 + @RequestMapping(value = "login",method = {RequestMethod.GET,RequestMethod.POST,RequestMethod.OPTIONS})
42 42 public BaseResponse login(String username, String passwd){
43 43 // QueryWrapper queryWrapper= Wrappers.query(LymsUser.class);
44 44 log.info(">>>>>");