<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ocelot on 冯威的博客</title><link>https://fwhyy.com/tags/ocelot/</link><description>Recent content in Ocelot on 冯威的博客</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Wed, 16 May 2018 00:19:38 +0800</lastBuildDate><atom:link href="https://fwhyy.com/tags/ocelot/atom.xml" rel="self" type="application/rss+xml"/><item><title>调用API修改Ocelot的配置文件</title><link>https://fwhyy.com/2018/05/call-api-to-modify-the-configuration-file-of-the-ocelot/</link><pubDate>Wed, 16 May 2018 00:19:38 +0800</pubDate><guid>https://fwhyy.com/2018/05/call-api-to-modify-the-configuration-file-of-the-ocelot/</guid><description>&lt;p&gt;Ocelot是一个基于.net core的开源webapi服务网关开源项目，功能比较强大，Github项目地址为：&lt;a href="https://github.com/ThreeMammals/Ocelot"&gt;https://github.com/ThreeMammals/Ocelot&lt;/a&gt;，关于Ocelot的学习资料可以看看张善友的网站：&lt;a href="http://www.csharpkit.com/apigateway.html"&gt;http://www.csharpkit.com/apigateway.html&lt;/a&gt;。&lt;/p&gt;
&lt;p&gt;Ocelot的路由设置是基于配置文件的，同样在Ocelot中使用Consul做服务发现时，也是基于配置文件，当我们修改路由或者需要往Consul中添加ServiceName的时候，需要修改配置文件，网关服务也需要重启，这当然不是我们想要的。&lt;/p&gt;</description></item></channel></rss>