含雪幸福

导航

 

2021年3月15日

摘要: SQL 注入是一类危害极大的攻击形式。虽然危害很大,但是防御却远远没有XSS那么困难。 SQL 注入漏洞存在的原因,就是拼接 SQL 参数。也就是将用于输入的查询参数,直接拼接在 SQL 语句中,导致了SQL 注入漏洞。 我们看到:select id,no from user where id=2; 阅读全文
posted @ 2021-03-15 17:31 含雪幸福 阅读(50) 评论(0) 推荐(0) 编辑
 
摘要: mybatis常见面试、笔试题汇总 转载:https://www..com/huststl/p/7570993.html和https://blog..net/m0_37204491/article/details/70155540 1、#{}和${}的区别是什么? 答: ${}是Properties 阅读全文
posted @ 2021-03-15 16:07 含雪幸福 阅读(657) 评论(0) 推荐(0) 编辑
 
摘要: 什么是事务 事务是访问数据库的一个操作序列,数据库应用系统通过事务集来完成对数据库的存取。事务的正确执行使得数据库从一种状态转换为另一种状态。 事务必须服从ISO/IEC所制定的ACID原则。ACID是原子性(atomicity)、一致性(consistency)、隔离性(isolation)、持久 阅读全文
posted @ 2021-03-15 15:44 含雪幸福 阅读(73) 评论(0) 推荐(0) 编辑
 
 
/*生成博客目录的CSS*/ #uprightsideBar{ font-size:12px; font-family:Arial, Helvetica, sans-serif; text-align:left; position:fixed;/*将div的位置固定到距离top:50px,right:0px的位置,这样div就会处在最右边的位置,距离顶部50px*/ top:50px; right:0px; width: auto; height: auto; } #sideBarTab{ float:left; width:30px; border:1px solid #e5e5e5; border-right:none; text-align:center; background:#ffffff; } #sideBarContents{ float:left; overflow:auto; overflow-x:hidden;!important; width:200px; min-height:108px; max-height:460px; border:1px solid #e5e5e5; border-right:none; background:#ffffff; } #sideBarContents dl{ margin:0; padding:0; } #sideBarContents dt{ margin-top:5px; margin-left:5px; } #sideBarContents dd, dt { cursor: pointer; } #sideBarContents dd:hover, dt:hover { color:#A7995A; } #sideBarContents dd{ margin-left:20px; }