springmvc

springmvc跨域设置

说明可以使用注解逐个设定,可以可以使用配置全局设定。CrossOrigin注解@CrossOrigin(origins = "http://localhost:3000")@RequestMapping(value="/search",method = RequestMethod.GET)@ResponseBody@ApiOperation(value = "查询")pub