Giter VIP home page Giter VIP logo

Comments (7)

everythingbest avatar everythingbest commented on June 12, 2024

可能是你没有启动后端,或者前端的代理没有配置正确

from dubbo-postman.

yiyuzhou avatar yiyuzhou commented on June 12, 2024

后端启动成功 还是network error

from dubbo-postman.

everythingbest avatar everythingbest commented on June 12, 2024

后端启动成功 还是network error

通过这个命令进行前端代码的编译:npm run build
如果前端编译成功,然后后端启动正常,访问 localhost:8080 就可以访问到页面首页了。

from dubbo-postman.

wzq-xzwj avatar wzq-xzwj commented on June 12, 2024

请问如何才能通过9528访问且不报错network error呢?看起来这像是一个跨域的问题

from dubbo-postman.

everythingbest avatar everythingbest commented on June 12, 2024

请问如何才能通过9528访问且不报错network error呢?看起来这像是一个跨域的问题
直接对页面请求进行mock 测试的话,可以修改 src/main/frontend/main.js 文件,把
//如果是本地调试就使用,在build的时候正注释掉这行
//import './mock'
上面的注释去掉,然后npm run dev,就可以了。

from dubbo-postman.

wzq-xzwj avatar wzq-xzwj commented on June 12, 2024

from dubbo-postman.

everythingbest avatar everythingbest commented on June 12, 2024

谢谢!我这边实际测试情况是想要进行前后端分离使用,并不是用来本地调试的。。。不知这种应该如何解决跨域问题,是要使用cas登录吗? 从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送 发件人: @.> 发送时间: 2021年10月9日 14:32 收件人: @.> 抄送: @.>; @.> 主题: Re: [everythingbest/dubbo-postman] 页面启动后,一直报错,network error (#18) 请问如何才能通过9528访问且不报错network error呢?看起来这像是一个跨域的问题 直接对页面请求进行mock 测试的话,可以修改 src/main/frontend/main.js 文件,把 //如果是本地调试就使用,在build的时候正注释掉这行 //import './mock' 上面的注释去掉,然后npm run dev,就可以了。 ― You are receiving this because you commented. Reply to this email directly, view it on GitHub<#18 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIIXWGR2CQTZCVJ6I5HTFXTUF7OX7ANCNFSM4TMKUSDQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

看readme文件:
先编译前端ui: npm run build
再编译后端代码: maven clean package
然后启动: java -jar target/dubbo-postman.jar
访问地址:http://localhost:8080/ 就可以了。

from dubbo-postman.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.