摘要: https://www.cnblogs.com/wang-xiaohui/p/5521375.html 路径 :C:\MyLocalSymbols;SRV*C:\MyLocalSymbols*http://msdl.microsoft.com/download/symbols 加载sos: .loa 阅读全文
posted @ 2019-08-06 10:32 超级飞猪猪侠 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 先上一个存储过程 根据存储过程生成一个流水号。 表结构: key列上无索引, 脚本根据key 更新表的nextValue。 在高并发下抓取到的一个死锁 抓取到的另外一个死锁: 分析:因为key列无索引,更新需要使用id聚集索引去更新,导致更新请求更新锁时失败,引发死锁问题, 解决办法: 去除id列的 阅读全文
posted @ 2019-07-22 17:34 超级飞猪猪侠 阅读(677) 评论(0) 推荐(0) 编辑
摘要: Jmeter笔记(Ⅱ)使用Jmeter实现轻量级的接口自动化测试 https://www.cnblogs.com/rd-ddddd/p/9578242.html JMeter的Redis数据集 - 简介 阅读全文
posted @ 2019-07-12 17:07 超级飞猪猪侠 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 查询索引的缺失 https://www.cnblogs.com/littlewrong/p/8676691.html https://blog.csdn.net/qyx0714/article/details/77428961 SQL Server 索引维护(1)——如何获取索引使用情况 https 阅读全文
posted @ 2019-07-08 16:50 超级飞猪猪侠 阅读(413) 评论(0) 推荐(0) 编辑
摘要: /* 异步请求结果返回状态码 */ var ResultStatus = { OK: 100, Failed: 101, NotLogin: 102, Unauthorized: 103 }; String.formatDate = function (format) { return formatDate(this, format); } function formatDate(d... 阅读全文
posted @ 2019-06-28 10:34 超级飞猪猪侠 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 创建一个存储过程 在存储过程中 先查询 一个表 for update 见代码: 执行此语句,将一直处于等待状态 原因是上一存储过程先执行查询 使用for update 占用X锁,在事务没有提交的情况下,新的窗口使用 for update 查询则一个处于阻塞等待 因为上一存储过程一直没有释放X锁. 执 阅读全文
posted @ 2019-06-13 17:29 超级飞猪猪侠 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 今天项目发布后,发现系统所有的 PUT请求不能用了, 提示如上, 本地测试正常,发布之后就不行了,瞬间很懵逼了 网上搜了一箩筐信息,发现好像都不对.... 仔细看了一下代码,发现了问题 新版本增加了角色验证,角色不符合,跳转到403错误页 我的shiro配置: 我的错误页这是这样的: 啊...... 阅读全文
posted @ 2019-04-28 17:58 超级飞猪猪侠 阅读(2757) 评论(0) 推荐(0) 编辑
摘要: -- 添加列 alter table bas_news add attend_count int ; -- 添加默认值 alter table bas_news alter column attend_count set default 0; -- 添加列注释 alter table bas_news modify column attend_count int comment '参与人数' ... 阅读全文
posted @ 2019-04-28 10:57 超级飞猪猪侠 阅读(2515) 评论(0) 推荐(0) 编辑
摘要: class Fruit { public int add(){ return 0; } } class Apple extends Fruit {} class Jonathan extends Apple {} class Orange extends Fruit {} class CovariantArrays { public static voi... 阅读全文
posted @ 2019-04-17 14:47 超级飞猪猪侠 阅读(1326) 评论(0) 推荐(0) 编辑
摘要: 之前一直在写T-SQL,没有写过mysql 的存储过程,今天用SQLYog写mysql的存储过程,感觉好不习惯... 没有过多研究 貌似变量声明前 不能执行select 之类的操作 写的一个示例,循环给表中某列增加一个默认值 自定义错误参照 这个 存储过程传参 Loop循环 游标存储 仅此标记.. 阅读全文
posted @ 2019-04-16 12:11 超级飞猪猪侠 阅读(977) 评论(0) 推荐(0) 编辑