当前位置: 代码迷 >> 综合 >> How to solve Vue cross-domain problem based on nodejs
  详细解决方案

How to solve Vue cross-domain problem based on nodejs

热度:35   发布时间:2023-12-15 00:35:37.0

启动前端VUE

lwk@qwfys ~/Public/project/com/jetbrains/idea/eop-web-iview $ npm run dev> erp-front@1.0.0 dev /home/lwk/Public/project/com/jetbrains/idea/eop-web-iview
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js95% emitting                                                                             DONE  Compiled successfully in 10323ms                                                                                                                                                                                                                                                                               15:00:25I  Your application is running here: http://127.0.0.1:8088

启动后端nodejs

lwk@qwfys ~/Public/project/com/jetbrains/idea/eop-web-iview/server $ node app.js
server start at port 8081

启动后端spring boot

mvn spring-boot:run
  相关解决方案