11 2020 档案

摘要:什么是session: 服务器为每个用户创建一个会话,存储用户的相关信息,以便多次请求能够定位到同一个上下文。 当用户请求来自应用程序的 Web 页时,如果该用户还没有会话,则 Web 服务器将自动创建一个 Session 对象。当会话过期或被放弃后,服务器将终止该会话并销毁。 分布式session 阅读全文
posted @ 2020-11-26 08:54 .net&new 阅读(92) 评论(0) 推荐(0) 编辑
摘要:1.分布式 将一个大的系统划分为多个业务模块,业务模块分别部署到不同的机器上,各个业务模块之间通过接口进行数据交互。区别分布式的方式是根据不同机器不同业务。 上面:service A、B、C、D 分别是业务组件,通过API Geteway进行业务访问。 注:分布式需要做好事务管理。 2.微服务架构 阅读全文
posted @ 2020-11-26 08:51 .net&new 阅读(1255) 评论(0) 推荐(0) 编辑
摘要:1.场景描述 因为要做网关的高可用,用到了keepalived+nginx,来保证nginx的高可用,如下图: 安装了keepavlived,走了一些弯路,记录下吧,nginx的安装就不多说了,博客已经介绍了好几篇了。 2. 解决方案 2.1 安装keepalived 2.1.1 安装相关依赖包 [ 阅读全文
posted @ 2020-11-26 08:45 .net&new 阅读(68) 评论(0) 推荐(0) 编辑
摘要:yum,是Yellow dog Updater Modified的简称,起初是由yellow dog这一发行版的开发者Terra Soft研发,用python写成,那时还叫做yup(yellow dog updater),后经杜克大学的Linux@Duke开发团队进行改进,遂有此名。yum的宗旨是自 阅读全文
posted @ 2020-11-26 08:33 .net&new 阅读(3850) 评论(0) 推荐(0) 编辑
摘要:1:下载nginx-1.19.2 2:修改confi目录下的nginx.conf 3:配置如下图 4:启动nginx.exe 5:运行网站1 6:运行网站2 7:输入http://127.0.0.1:8800 结果1: 结果2: 阅读全文
posted @ 2020-11-24 08:42 .net&new 阅读(76) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using Xiaowu.Model;using Xiaowu.BLL;using System 阅读全文
posted @ 2020-11-19 08:46 .net&new 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-11-18 22:32 .net&new 阅读(95) 评论(1) 推荐(0) 编辑
摘要:SysUserInfoController代码 using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using Xiaowu.Model;using 阅读全文
posted @ 2020-11-18 22:27 .net&new 阅读(163) 评论(0) 推荐(0) 编辑
摘要:IndexController代码 using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using Xiaowu.Model;using Xiaow 阅读全文
posted @ 2020-11-18 22:25 .net&new 阅读(129) 评论(0) 推荐(0) 编辑
摘要:封装XiaowuBLL类库 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Xiaowu.DAL;using Xi 阅读全文
posted @ 2020-11-18 22:19 .net&new 阅读(124) 评论(0) 推荐(0) 编辑
摘要:封装用户表得wu_userDAL using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Xiaowu.Model;nam 阅读全文
posted @ 2020-11-18 22:18 .net&new 阅读(59) 评论(0) 推荐(0) 编辑
摘要:再DAL类库中封装BaseDAL using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.Enti 阅读全文
posted @ 2020-11-18 22:16 .net&new 阅读(73) 评论(0) 推荐(0) 编辑
摘要:1:安装MySQL Connector Net 6.8.3 2:安装MySQL for Visual Studio 1.2.9 3:安装entityframework6 4:安装mysql5.5 阅读全文
posted @ 2020-11-18 22:13 .net&new 阅读(52) 评论(0) 推荐(0) 编辑
摘要:以前我都是通过定义一个delegate来写委托的,但是最近看一些外国人写的源码都是用action和func方式来写,当时感觉对这很陌生所以看起源码也觉得陌生,所以我就花费时间来学习下这两种方式,然后发现确实代码简洁了不少。这两种方式我们也可以去实践的过程去慢慢运用。 先说一下委托: 模拟一下场景:小 阅读全文
posted @ 2020-11-18 22:09 .net&new 阅读(742) 评论(0) 推荐(1) 编辑
摘要:<?xml version="1.0"?><configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSect 阅读全文
posted @ 2020-11-18 22:05 .net&new 阅读(79) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.Entity;namespace Xiao 阅读全文
posted @ 2020-11-18 22:02 .net&new 阅读(71) 评论(0) 推荐(0) 编辑
摘要:<%@ WebHandler Language="C#" Class="Handler" %> using System;using System.Web; public class Handler : IHttpHandler{ public void ProcessRequest(HttpCon 阅读全文
posted @ 2020-11-11 10:44 .net&new 阅读(60) 评论(0) 推荐(0) 编辑
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="HuploadifyTest.aspx.cs" Inherits="Test_HuploadifyTest" %> <!DOCTYPE html PUBLIC "-//W3C//DTD X 阅读全文
posted @ 2020-11-11 10:43 .net&new 阅读(137) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示