在controller上添加@CrossOrigin注解,如下:
@CrossOrigin
@RestController @RequestMapping("course") @CrossOrigin public class CourseController extends BaseController {