前端请求报错:No 'Access-Control-Allow-Origin' header is present on the requested resource.
前端使用 Ajax 请求后端的数据接口时,报错 :No 'Access-Control-Allow-Origin' header is present on the requested resource.
解决方法:在 controller 层的方法上面添加 @CrossOrigin 注解

前端使用 Ajax 请求后端的数据接口时,报错 :No 'Access-Control-Allow-Origin' header is present on the requested resource.
解决方法:在 controller 层的方法上面添加 @CrossOrigin 注解
