百度搜了一下,好多都是springboot+vue的,我要是spring的话怎么弄呢
收起
跨域了,因为前后端服务的端口不一致。 解决Vue前端请求后端解决接口跨域问题(开发环境下)_I'm写代码的博客-CSDN博客_vue跨域接口请求的url是什么 问题描述:在进行接口请求的时候跨域请求的错误。解决方法:1、修改config文件下的index.js里面的proxyTable属性:proxyTable: { '/api':{ target:'http://bus.jt.sh.cn:8080', changeOrigin: true, pathRewrite:{ '^/trafficline':'' } } },说明:proxyT https://blog.csdn.net/qq_41497443/article/details/108569670
报告相同问题?