摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Security.Cryptography 阅读全文
posted @ 2022-07-21 16:48 ly188 阅读(100) 评论(0) 推荐(0)
摘要: 1.修改redis.windows.config文件(linux对应redis.conf文件),将bind 127.0.0.1注释掉,将protected-mode yes改为protected-mode no; 2.同理修改redis.windows.server.config文件中相应内容; 3 阅读全文
posted @ 2022-05-12 13:13 ly188 阅读(1062) 评论(0) 推荐(0)
摘要: ly188:二话不说上代码 /// <summary> /// 描 述:NPOI Excel 操作类 /// </summary> public static class ExcelExport {/// <summary> /// 根据list导出(表头默认为第一行) /// </summary> 阅读全文
posted @ 2022-04-25 10:38 ly188 阅读(226) 评论(0) 推荐(0)
摘要: 二话不说直接上代码: public static class ExcelImport { /// <summary> /// 获取导入excel数据(npoi) /// </summary> /// <typeparam name="T"></typeparam> /// <param name=" 阅读全文
posted @ 2022-04-24 17:44 ly188 阅读(704) 评论(0) 推荐(0)
摘要: public class HttpHelper { /// <summary> /// post请求 /// </summary> /// <param name="url">请求地址</param> /// <param name="body">参数</param> /// <param name 阅读全文
posted @ 2022-02-11 11:24 ly188 阅读(156) 评论(0) 推荐(0)
摘要: public class AddXXHeaderFilter: IOperationFilter { public void Apply(OpenApiOperation operation, OperationFilterContext context) { var filterPipeline 阅读全文
posted @ 2022-01-25 15:12 ly188 阅读(2241) 评论(0) 推荐(0)
摘要: ly188:二话不说上代码 public class KafkaRepository { #region -- 连接信息 -- /// <summary> /// 获取配置信息 /// </summary> /// <returns></returns> public string GetConfi 阅读全文
posted @ 2021-11-23 09:30 ly188 阅读(266) 评论(0) 推荐(0)
摘要: ly188:二话不说上代码 public static class MappingExtension { #region 对象值映射赋值(属性名称根据被指映射) /// <summary> /// 对象值映射赋值(属性名称根据被指映射) /// </summary> /// <typeparam n 阅读全文
posted @ 2021-11-04 14:46 ly188 阅读(2153) 评论(0) 推荐(0)
摘要: ly188:二话不说上代码 public static class XmlSerializeHelper { //// 示例 //[XmlRoot("products")]//// 名称 //public class products //{ // [XmlElement("product")]// 阅读全文
posted @ 2021-10-29 09:07 ly188 阅读(411) 评论(0) 推荐(0)
摘要: ly188:二话不说直接上代码 using (TransactionScope scope = new TransactionScope()) { // 本身业务 //下面是提交事务 scope.Complete(); } 阅读全文
posted @ 2021-10-26 15:35 ly188 阅读(39) 评论(0) 推荐(0)