1 Star 0 Fork 0

williamjava / s2g-zuul

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

s2g-zuul

Spring2go定制版Netflix zuul

注意!!!

  1. 本项目为微服务课程讲解开发,代码仅供学习参考,如需生产化,需要做生产化扩展+严格测试!!!另外请考虑Spring Cloud Zuul。
  2. 注意本项目依赖CAT3.0客户端,启动前需要先CAT客户端配置工作,否则Servlet会启不来,步骤如下描述。

建议

s2g-zuul源码建议使用较新版本的Eclipse IDE for Java EE Developer进行导入,它可以自动感知Servlet Web项目,可在Eclipse+Tomcat里头直接调试源码,方便排查问题。

启动 cat 客户端前的准备工作

  1. 创建 /data/appdatas/cat 目录

    确保你具有这个目录的读写权限。

  2. 创建 /data/applogs/cat 目录 (可选)

    这个目录是用于存放运行时日志的,这将会对调试提供很大帮助,同样需要读写权限。

  3. 创建 /data/appdatas/cat/client.xml,内容如下

    <?xml version="1.0" encoding="utf-8"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="config.xsd">
        <servers>
            <server ip="127.0.0.1" port="2280" http-port="8080" />
        </servers>
    </config>

    如果不实际使用CAT,只是验证Zuul功能,则上面CAT服务器地址可以随意填;如果要实际启用CAT服务器,则上面需要填写你的CAT server地址。

注意,上述目录和zuul在要在同一逻辑盘下。

MIT License Copyright (c) 2018 spring2go.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Spring2go定制版Netflix zuul 展开 收起
Java 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/williamjava/s2g-zuul.git
git@gitee.com:williamjava/s2g-zuul.git
williamjava
s2g-zuul
s2g-zuul
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891