https://github.com/spring2go/s2g-zuul
Spring2go定制版Netflix zuul
https://github.com/spring2go/s2g-zuul
Last synced: 10 months ago
JSON representation
Spring2go定制版Netflix zuul
- Host: GitHub
- URL: https://github.com/spring2go/s2g-zuul
- Owner: spring2go
- License: mit
- Created: 2018-06-11T10:44:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-03T22:18:11.000Z (over 3 years ago)
- Last Synced: 2024-12-06T10:50:22.546Z (over 1 year ago)
- Language: Java
- Size: 196 KB
- Stars: 95
- Watchers: 6
- Forks: 135
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# s2g-zuul
Spring2go定制版Netflix zuul
## 注意!!!
1. 本项目为微服务课程讲解开发,代码仅供学习参考,如需生产化,需要做生产化扩展+严格测试!!!另外请考虑Spring Cloud Zuul。
2. 注意本项目依赖[CAT3.0](https://github.com/dianping/cat)客户端,启动前需要先CAT客户端配置工作,否则Servlet会启不来,步骤如下描述。
## 建议
s2g-zuul源码建议使用较新版本的[Eclipse IDE for Java EE Developer](https://www.eclipse.org/downloads/packages/release/2019-03/r/eclipse-ide-enterprise-java-developers
)进行导入,它可以自动感知Servlet Web项目,可在Eclipse+Tomcat里头直接调试源码,方便排查问题。
## 启动 cat 客户端前的准备工作
1. 创建 `/data/appdatas/cat` 目录
确保你具有这个目录的读写权限。
2. 创建 `/data/applogs/cat` 目录 (可选)
这个目录是用于存放运行时日志的,这将会对调试提供很大帮助,同样需要读写权限。
3. 创建 `/data/appdatas/cat/client.xml`,内容如下
```xml
```
> 如果不实际使用CAT,只是验证Zuul功能,则上面CAT服务器地址可以随意填;如果要实际启用CAT服务器,则上面需要填写你的CAT server地址。
注意,上述目录和zuul在要在同一逻辑盘下。