Git Product home page Git Product logo

Comments (7)

 avatar commented on July 23, 2024

desktop在config目录下有个配置文件,里面地址指向控制台console的地址,只是简单的rest请求而已

from discovery.

zhaipan avatar zhaipan commented on July 23, 2024

抱歉,我之前的表述有点问题,我想说的是example-zuul和example-service这两个服务如果配上server.servlet.context-path项目名,console-Desktop和example-console就会出问题,在console-Desktop里操作执行灰度路由会报错:org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://10.0.5.16:8769/router/routes": http://10.0.5.16:8769/router/routes; nested exception is java.io.FileNotFoundException: http://10.0.5.16:8769/router/routes 。 表现为请求地址url错误,应该是加上项目名的 http://10.0.5.16:8769/xxxx/router/routes

from discovery.

 avatar commented on July 23, 2024

我明白你的意思了,但我想了解,你们这么做主要是什么场景?

from discovery.

 avatar commented on July 23, 2024

你可以扫描主页的微信二维码,进去到我群里去,我们跟大伙一起讨论一下你的需求

from discovery.

 avatar commented on July 23, 2024

你的需求已经支持,请更新最新代码

from discovery.

zhaipan avatar zhaipan commented on July 23, 2024

非常感谢您的回复和指点,我的问题已经解决了,您说的没错,context-path会带来很多问题,我已经不再使用context-path配置了。我的应用场景是的将一个传统的web项目改造成微服务,由于资源限制,用的thymeleaf模板做页面端处理,没有用vue、angular等前端技术做前后端分离开发,搭配zuul网关后每个web微服务都有路径错乱的问题发生。用于不用context-path都有这样的问题。再次非常感谢您的回复。

from discovery.

 avatar commented on July 23, 2024

嗯,昨天我花了三个小时时间改了大量代码,也支持了context-path的方案,其实你的需求也是合理的

from discovery.

Related Issues (20)

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.