上一页 1 2 3 4 5 6 7 ··· 23 下一页
摘要: 1 编写 ConsulServerOptions 类 public class ConsulServerOptions { public string? IP { get; set; } public int Port { get; set; } public string? Datacenter 阅读全文
posted @ 2022-06-03 10:13 温故纳新 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1 在Startup中添加 public Startup(IWebHostEnvironment env) { var builder = new ConfigurationBuilder() .SetBasePath(env.ContentRootPath) .AddJsonFile("appse 阅读全文
posted @ 2022-06-03 10:12 温故纳新 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 第1种方式,通过 rabbitmq 管理控制台 以创建队列时设置 arguments 可选的参数有哪些 打开 rabbitm管理后台 参考文档:http://nicethemes.cn/news/txtlist_i94723v.html 第2种方式 rabbitmq 官方文档 https://www 阅读全文
posted @ 2022-05-22 09:38 温故纳新 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 1 创建 .net5 web api 项目 2 修改 Startup.cs 如下 using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.HttpsPolic 阅读全文
posted @ 2022-05-20 17:06 温故纳新 阅读(323) 评论(0) 推荐(0) 编辑
摘要: abp里面每个中间件都可以配置自己的依赖注入容器(重写 ConfigureServices ,然后通过上下文的 Services 属性获取ioc容器)和请求管道(重写 OnApplicationInitialization,然后通过上下文的GetApplicationBuilder 获取 appli 阅读全文
posted @ 2022-05-19 07:48 温故纳新 阅读(59) 评论(0) 推荐(0) 编辑
摘要: select TABLE_NAME TableName ,COLUMN_NAME FieldName ,DATA_TYPE FieldTypeName ,0 FieldMaxLength ,COLUMN_COMMENT FieldDesc from information_schema.COLUMN 阅读全文
posted @ 2022-05-18 21:51 温故纳新 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 架构图:Master 提供增删改功能,2个Slave提供查询功能 系统环境: linux 版本 docker 版本 1.1 拉取 mysql 容器镜像 docker pull mysql:8.0 查看已经获取的镜像 docker images 1.2 运行镜像 创建 master 容器 mysql- 阅读全文
posted @ 2022-05-08 08:38 温故纳新 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 最左匹配原则只有在查询条件中使用了创建索引时的第一个字段,索引才会被使用。 -- 创建测试表 CREATE TABLE `student_0506` ( `id` int(11) NOT NULL, `name` varchar(10) NOT NULL, `age` int(11) NOT NUL 阅读全文
posted @ 2022-05-06 22:49 温故纳新 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 在 Startup.cs 中的 Configure 方法中添加如下代码: app.UseDefaultFiles(); if (!Directory.Exists(Directory.GetCurrentDirectory() + "/wwwroot")) Directory.CreateDirec 阅读全文
posted @ 2022-05-05 11:59 温故纳新 阅读(403) 评论(0) 推荐(0) 编辑
摘要: 项目框架为 .net5 webapi 项目 1 centos7 安装docker 参考链接 https://blog.csdn.net/cbh1987/article/details/120481157 2 创建基于.net 5框架启动项为 MyAdmin 的项目 项目中添加 Dockerfie 文 阅读全文
posted @ 2022-05-04 10:42 温故纳新 阅读(306) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 23 下一页