1.Vue登录,F12 如下404错误

POST http://localhost:8701/renren-fast/sys/login 404 (Not Found) 

Uncaught (in promise) Error: Request failed with status code 404
    at createError (createError.js?16d0:16)
    at settle (settle.js?db52:18)
    at XMLHttpRequest.handleLoad (xhr.js?ec6c:77)

 解决方案:

vue前端项目 static>config>index,js中项目路径端口与后端renren-fast中端口不一致。这里是8701,而application,yml配置文件中却是8702,这里改成8702后访问生效。

 

 

Logo

前往低代码交流专区

更多推荐