@CrossOrigin

@CrossOrigin 注解解决跨域问题,在需要允许跨域访问的接口加上该注解就可以,如果用@RequestMapping,则要指定get,或post等才有起效

你可能感兴趣的:(学习笔记)