在csdn上看一篇关于前端是Vue.js,后端是SpringBoot的网站搭建教程,其中,在前端vue.js搭建中有这么一段话:
https://blog.csdn.net/weixin_40816738/article/details/103969151
为了让后端能够访问到前端的资源,需要配置跨域支持。
在 config\index.js 中,找到 proxyTable 位置,修改为以下内容
proxyTable: {
'/api': {
target: 'http://localhost:8443',
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
他说的config\index.js应该在Intellij Idea的项目树的哪里?
我现在放的位置报错,
应该放在哪里?