上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页
摘要: 首先需要添加引用ServiceStack.Redis using(IRedisClient client=new RedisClient("127.0.0.1",6379,"123456",2)) { #region 单个增加与读取 //删除当前数据所有key client.FlushDb(); C 阅读全文
posted @ 2021-05-14 23:36 RookieCoderAdu 阅读(651) 评论(0) 推荐(0)
摘要: Redis设置密码的方法有两种 第一种、直接修改redis.conf 在配置文件中 找到 # requirepass foobared 这里默认是注释掉的,表示不使用密码,将#去掉,并将foobared改为自己想要修改的密码,需要重启redis。 第二种、直接使用命令 使用以下命令 config s 阅读全文
posted @ 2021-05-14 21:30 RookieCoderAdu 阅读(789) 评论(0) 推荐(0)
摘要: 以往的sql优化一般是根据经验,但是遇上复杂的sql,以往经验不起作用的时候怎么办?这时候,就有性能分析工具来辅助我们分析Sql中存在的问题。 打开方法: Sql server 2012数据库 -》 工具 -》Sql Server Profiler 设置好数据库的地址和账号密码 按照上诉步骤进行设置 阅读全文
posted @ 2021-05-13 00:20 RookieCoderAdu 阅读(354) 评论(0) 推荐(0)
摘要: 线程池分为四种: fixThreadPool(正规线程池) cacheThreadPool(缓存线程池) singleThreadPool(单线程线程池) scheduledThreadPool(周期执行线程池) 【线程池与多线程的区别】 1.线程池是在程序运行时,自动创建好多个线程,挂起等待任务。 阅读全文
posted @ 2021-05-10 23:26 RookieCoderAdu 阅读(2160) 评论(0) 推荐(0)
摘要: System.Data.DataTable dtSource = ToDataTable<EmpExtension>(empList); Response.ContentType = "application/vnd.ms-excel"; Response.ContentEncoding = Enc 阅读全文
posted @ 2021-04-23 10:20 RookieCoderAdu 阅读(98) 评论(0) 推荐(0)
摘要: 项目报错,起初以为是dll问题,结果各种不行。 后来查资料,才发现是要将网站对应的应用程序池 里面的表示设置为 LocalSystem 设置一次即可,以后设置成其他也行 阅读全文
posted @ 2021-04-22 18:58 RookieCoderAdu 阅读(861) 评论(0) 推荐(0)
摘要: System.Data.DataTable dtSource = ToDataTable<EmpExtension>(empList); //数据源 context.Response.ContentType = "application/vnd.ms-excel"; context.Response 阅读全文
posted @ 2021-04-22 10:51 RookieCoderAdu 阅读(207) 评论(0) 推荐(0)
摘要: 让文字超过div宽度的时候,自动换行 word-wrap: break-word; word-break: break-all; 假如想让文字两行显示,超过两行时以省略号结尾,则需要设置 display:-webkit-box;text-overflow:ellipsis;-webkit-line- 阅读全文
posted @ 2021-04-08 14:54 RookieCoderAdu 阅读(1408) 评论(0) 推荐(0)
摘要: SqlConnection conn = new SqlConnection(connString); conn.Open(); SqlTransaction trans = conn.BeginTransaction(); try { //插入操作 conn.Execute(@"insert in 阅读全文
posted @ 2021-04-07 11:16 RookieCoderAdu 阅读(586) 评论(0) 推荐(0)
摘要: 1.使用管理员身份打开VS 2.选择 调试 -》附加到进程 3.勾选 选择所有用户的进程 4.选中 w3wp,点击附加 5.打断点调试 【重要:假如找不到w3wp.exe】 1.确认已经勾选 所有进程,刷新 2.若依然找不到,打开iis,找到自己的网站,从iis上打开自己自己的网站,再查看进程 阅读全文
posted @ 2021-03-26 10:40 RookieCoderAdu 阅读(114) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 31 下一页