后端解決前端使用ajax訪問后端出現的跨域問題
Access to XMLHttpRequest at 'http://127.0.0.1:1203/stu/addStu' from origin 'http://localhost:8081' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
后端Controller添加@CrossOrigin注解即可