上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 57 下一页
摘要: .Net Core 3.0 warn: Microsoft.AspNetCore.Session.SessionMiddleware[7] Error unprotecting the session cookie. System.Security.Cryptography.Cryptographi 阅读全文
posted @ 2020-06-04 19:25 VipSoft 阅读(5271) 评论(0) 推荐(1)
摘要: app.UseIpRateLimiting(); #需要放在前面,否则抓去不准,还有可能会出现下列错误 本次出现这个错误,是因为 .Net Core 跨域 里面的这行:httpContext.Response.StatusCode = 204; 由于StatusCode 先给它设了 204,所以导致 阅读全文
posted @ 2020-06-04 14:07 VipSoft 阅读(3240) 评论(2) 推荐(0)
摘要: Ctrl+Shift+P 安装 pretty json Ctrl+Alt+J 阅读全文
posted @ 2020-06-01 19:06 VipSoft 阅读(1048) 评论(0) 推荐(1)
摘要: Ctrl+Shift+P 安装 ChineseLocalizations 包 如下图 或者 Preferences -> Package Control 阅读全文
posted @ 2020-06-01 18:37 VipSoft 阅读(229) 评论(0) 推荐(0)
摘要: 1. 默认情况下是方框,看起来不太方便 2. 选中 “同” 然后按 Alt +F3【下方的查询框要出现,没有的话按 Ctrl+F 调出来,否则不会高亮显示】 同时,选中的文字还会填入查找框中, 下面是网上说的 wordhighlight 插件,某些类型的文档,如JSON,双击一下就可以高亮,写代码时 阅读全文
posted @ 2020-06-01 17:37 VipSoft 阅读(12079) 评论(0) 推荐(1)
摘要: 1.将 city_code_cn.json 中的省、市、区,翻译成英文,或直接替换去掉省、市 如:苏州市 -> 苏州 转成拼音后就变成 Suzhou,否则就会转成 Suzhoushi 怪怪的 import pypinyin import re def pinyin(word): s = '' for 阅读全文
posted @ 2020-05-28 18:35 VipSoft 阅读(634) 评论(0) 推荐(0)
摘要: 1.输入乱码如图 2.Preferences -> Browse Packages.. 3.加入 "env": { "PYTHONIOENCODING": "utf8" } 重新编译,可输出中文 阅读全文
posted @ 2020-05-27 16:46 VipSoft 阅读(360) 评论(0) 推荐(0)
摘要: 1.安装 netaddr 组件 pip install netaddr -i https://mirrors.aliyun.com/pypi/simple/ from netaddr import IPNetwork print('https://ipjisuanqi.com/#121.224.14 阅读全文
posted @ 2020-05-23 21:53 VipSoft 阅读(2058) 评论(0) 推荐(0)
摘要: 1.查出有哪些约束 SELECT CONSTRAINT_NAME,CONSTRAINT_TYPE,STATUS FROM USER_CONSTRAINTS WHERE TABLE_NAME ='D_DRUG_DICTIONARY'; 2.删除 唯一约束 ALTER TABLE D_DRUG_DICT 阅读全文
posted @ 2020-05-23 01:08 VipSoft 阅读(3236) 评论(0) 推荐(0)
摘要: 1.Demo,实际项目中不这么使用 class Program { static void Main(string[] args) { //缓存的配置 MemoryCacheOptions cacheOps = new MemoryCacheOptions() { //缓存最大为100份 //##注 阅读全文
posted @ 2020-05-16 14:37 VipSoft 阅读(1559) 评论(0) 推荐(0)
摘要: Startup.cs public class Startup { public static readonly ILoggerFactory efLogger = LoggerFactory.Create(builder => { builder.AddFilter((category, leve 阅读全文
posted @ 2020-05-15 20:54 VipSoft 阅读(2821) 评论(0) 推荐(0)
摘要: using NLog; private static Logger logger = LogManager.GetCurrentClassLogger(); //初始化日志类 NLog.config <?xml version="1.0" encoding="utf-8" ?> <nlog xmln 阅读全文
posted @ 2020-05-15 11:01 VipSoft 阅读(875) 评论(0) 推荐(0)
摘要: 1.Nuget包添加引用: X.PagedList.Mvc.Core 2.View: @using VipSoft.Web.Model @model X.PagedList.IPagedList<VipSoft.Web.Model.DBEntity.Job> @using X.PagedList.M 阅读全文
posted @ 2020-05-14 19:56 VipSoft 阅读(1462) 评论(0) 推荐(0)
摘要: StartUp.cs public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.UseEndpoints(endpoints => { endpoints.MapControllerRoute( nam 阅读全文
posted @ 2020-05-14 13:57 VipSoft 阅读(278) 评论(0) 推荐(0)
摘要: Startup.cs public void Configure(IApplicationBuilder app, IHostingEnvironment env) { app.UseCorsMiddleware(); //其它代码...... } CorsMiddleware.cs using S 阅读全文
posted @ 2020-05-12 20:56 VipSoft 阅读(469) 评论(1) 推荐(0)
摘要: 仅我的代码“警告 你正在调试 XXX.dll 的发布版本。如果在启用”仅我的代码”的同时使用通过编译器优化的发布版本,调试体验会降级(例如,将不会命中断点) 停止调试 禁用仅我的代码并继续 继续调试 继续调试(不再询问) 阅读全文
posted @ 2020-04-27 14:16 VipSoft 阅读(5530) 评论(0) 推荐(0)
摘要: 将文件上传至 /opt 目录下 [root@localhost opt]# ll total 63704 -rw-r--r--. 1 root root 9181276 Mar 28 11:07 apache-maven-3.6.1-bin.zip drwxr-xr-x. 7 root root 8 阅读全文
posted @ 2020-04-19 21:09 VipSoft 阅读(170) 评论(0) 推荐(0)
摘要: 配置 Nginx 可以把.conf 文件拉到本地,配置好再传上去 #gzip on; upstream cluster{ server 192.168.0.113:8848; server 192.168.0.110:8848; server 192.168.0.109:8848; } server 阅读全文
posted @ 2020-04-19 21:00 VipSoft 阅读(3142) 评论(0) 推荐(0)
摘要: 三台虚机的IP地址被DHCP重分了一下1.MySQL 配置 先建一个 nacos_config 数据库 将SQL执行(方法很多,选自己喜欢的就行) 2.修改 application.properties 配置文件(application.properties.example 是示例) 先备份一下 v 阅读全文
posted @ 2020-04-19 19:00 VipSoft 阅读(1373) 评论(0) 推荐(0)
摘要: 虚机准备、Nacos 文件准备、MySQL 5.7 安装 https://nacos.io/zh-cn/docs/cluster-mode-quick-start.html 根据官网要求,至少3个节点(VM VirtualBox 比VMWare占资源要少些) 2.用 SecureCRT(工具无所谓, 阅读全文
posted @ 2020-04-13 00:11 VipSoft 阅读(2027) 评论(0) 推荐(0)
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 57 下一页