Comments (7)
desktop在config目录下有个配置文件,里面地址指向控制台console的地址,只是简单的rest请求而已
from discovery.
抱歉,我之前的表述有点问题,我想说的是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.
我明白你的意思了,但我想了解,你们这么做主要是什么场景?
from discovery.
你可以扫描主页的微信二维码,进去到我群里去,我们跟大伙一起讨论一下你的需求
from discovery.
你的需求已经支持,请更新最新代码
from discovery.
非常感谢您的回复和指点,我的问题已经解决了,您说的没错,context-path会带来很多问题,我已经不再使用context-path配置了。我的应用场景是的将一个传统的web项目改造成微服务,由于资源限制,用的thymeleaf模板做页面端处理,没有用vue、angular等前端技术做前后端分离开发,搭配zuul网关后每个web微服务都有路径错乱的问题发生。用于不用context-path都有这样的问题。再次非常感谢您的回复。
from discovery.
嗯,昨天我花了三个小时时间改了大量代码,也支持了context-path的方案,其实你的需求也是合理的
from discovery.
Related Issues (20)
- 提个建议 HOT 1
- 在spring-cloud异步场景下使用Hystrix情况下,调用服务出现空指针 HOT 5
- 想问一下,我能基于6.12版做开源吗? HOT 2
- 服务内部调用如何环境隔离 HOT 6
- 版本问题 HOT 1
- DiscoveryClientDecorator只有在版本偏好和版本故障转移打开后才有效么? HOT 1
- dependency scope setting issues
- gateway灰度在高版本springboot的时候已经不支持 HOT 1
- 基于gateway灰度方案,如果网关需要更新新功能,怎么动态更新网关? HOT 1
- Security contact for vulnerability report
- 请问服务间调用灰度支持Dubbo吗? HOT 1
- GHSL-2022-033_GHSL-2022-034: Remote Code Execution Vulnerability via SpEL Injection in Nepxion/Discovery - CVE-2022-23463, CVE-2022-23464 HOT 1
- Please open a GitHub Security Advisory HOT 7
- 定时Job下全链路条件蓝绿发布如何配置 HOT 5
- 云原生环境下,以nacos为配置中心,项目正常和灰度的业务配置如何区分 HOT 3
- service层获取requst上下文时,优先从restStrategyContext获取,在没使用异步情况下,会不会有内存泄漏问题 HOT 5
- 请教如何异步通过feign指定n-d-version调用目标版本的微服务 HOT 1
- 是否可以实现云服务和本地服务的灰度&蓝绿 HOT 1
- Discovery gateway 整合到现有系统,nacos配置问题 HOT 2
- openfeign问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discovery.