摘要: if %status% EQU deploy (cd C:\ProgramData\Jenkins\.jenkins\workspace\test\CEMS\CEMS.Apidotnet build C:\Windows\System32\inetsrv\appcmd.exe stop site " 阅读全文
posted @ 2024-01-09 10:11 LIGHTPRO 阅读(1) 评论(0) 推荐(0) 编辑
摘要: public static class XSSHelper { /// <summary> /// XSS过滤 /// </summary> /// <param name="html">html代码</param> /// <returns>过滤结果</returns> public static 阅读全文
posted @ 2021-12-16 15:36 LIGHTPRO 阅读(200) 评论(0) 推荐(0) 编辑
摘要: IEnumerable<string> result = null;List<string> a = new List<string> ();List<string> b = new List<string>() { "a","b","c","d"};List<string> c = new Lis 阅读全文
posted @ 2021-04-01 21:29 LIGHTPRO 阅读(503) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 批量添加 /// </summary> /// <param name="modelList"></param> public void BtachAdd(IEnumerable<SMSSendReport> modelList) { var dt = model 阅读全文
posted @ 2021-03-10 14:06 LIGHTPRO 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 方法1 var range = 100; int times = dataList.Count/range + (dataList.Count % range > 0 ? 1 :0 ); //dataList为要操作的数据,times为需要分批次数 for(int i = 0; i < times; 阅读全文
posted @ 2021-03-02 10:39 LIGHTPRO 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 1 static void Main(string[] args) 2 { 3 var redis = new Redis(); 4 Console.WriteLine(" 单个设置缓存开始 "); 5 redis.Set("a", "123"); 6 Console.WriteLine("a = 阅读全文
posted @ 2021-02-01 16:41 LIGHTPRO 阅读(436) 评论(0) 推荐(1) 编辑
摘要: https://www.cnblogs.com/saryli/p/9729591.html 阅读全文
posted @ 2021-02-01 14:35 LIGHTPRO 阅读(106) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/chinahuyong/article/details/51753996 阅读全文
posted @ 2021-02-01 12:30 LIGHTPRO 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1、什么是RabbitMQ?为什么使用RabbitMQ? 答:RabbitMQ是一款开源的,Erlang编写的,基于AMQP协议的,消息中间件; 可以用它来:解耦、异步、削峰。 2、RabbitMQ有什么优缺点? 答:优点:解耦、异步、削峰; 缺点:降低了系统的稳定性:本来系统运行好好的,现在你非要 阅读全文
posted @ 2021-01-28 16:32 LIGHTPRO 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 生产者 static void Main(string[] args) { new Producer(); } public class Producer { //交换机名字 private static string exchange_name = "direct_test"; public Pr 阅读全文
posted @ 2021-01-28 16:26 LIGHTPRO 阅读(765) 评论(0) 推荐(0) 编辑