上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 原文:https://segmentfault.com/a/1190000018535570?utm_source=tag-newest 概述 今天咱们面对移动互联网的发展,系统一般是多个客户端对应一个服务端。客户端统一通过F5或者Nginx代理转发到API网关,最后发送到服务API。如下图架构图所 阅读全文
posted @ 2019-04-16 14:43 玻璃鱼儿 阅读(3100) 评论(0) 推荐(0) 编辑
摘要: 1、SwaggerConfig文件配置 2、HttpHeaderFilter 请求头参数设置 3、AccessTokenAttribute身份认证 4、JsonDateTimeConverter Json日期转换 阅读全文
posted @ 2019-04-15 17:39 玻璃鱼儿 阅读(246) 评论(0) 推荐(0) 编辑
摘要: from https://www.cnblogs.com/asks/p/4372783.html MVC自带的ActionFilter 在Asp.Net WebForm的中要做到身份认证微软为我们提供了三种方式,其中最常用的就是我们的Form认证,需要配置相应的信息。例如下面的配置信息: 说明我们登 阅读全文
posted @ 2019-03-28 10:28 玻璃鱼儿 阅读(410) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Consul; namespace consulTest { class Program { static void M... 阅读全文
posted @ 2019-03-27 19:59 玻璃鱼儿 阅读(169) 评论(0) 推荐(0) 编辑
摘要: using Autofac.Extras.DynamicProxy; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace aopTest { [Intercept(typeof(CallL... 阅读全文
posted @ 2019-03-27 18:08 玻璃鱼儿 阅读(536) 评论(0) 推荐(0) 编辑
摘要: ``` csharp /// /// TypeTrimHelper /// public static class TypeTrimHelper { /// /// 类型字典 /// public static ConcurrentDictionary TypeDictionary ... 阅读全文
posted @ 2018-12-12 10:44 玻璃鱼儿 阅读(802) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2018.cnblogs.com/blog/219720/201811/219720-20181129152554186-843559991.png) ![](https://img2018.cnblogs.com/blog/219720/201811/219720-20181129152606496-1442673156.png) ![](https://img... 阅读全文
posted @ 2018-11-29 15:26 玻璃鱼儿 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 1、在网关项目中通过nuget引入Ocelot 2、Startup.cs文件代码调整 3、添加网关支持配置configuration.json 4、运行网关项目验证,访问http://localhost:9000/product进行验证,localhost:9000是你网关项目的host 参考链接: 阅读全文
posted @ 2018-11-07 15:02 玻璃鱼儿 阅读(419) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/wuyb_2004/article/details/51393290 http://www.cnblogs.com/whtydn/archive/2009/12/23/1630750.html 阅读全文
posted @ 2018-11-06 14:20 玻璃鱼儿 阅读(149) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/wangyulong/p/8727683.html https://blog.csdn.net/kebi007/article/details/72861532 http://www.cnblogs.com/wuhuacong/p/4902950.ht 阅读全文
posted @ 2018-11-05 17:41 玻璃鱼儿 阅读(348) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页