摘要: #{}能够防止SQL注入,因为底层使用PreparedStatement对象,预编译,性能较高 ${}不能防止SQL注入,因为底层使用Statement对象,不会预编译而是拼接字符串,性能较低 能使用#{}时尽量使用#{},如果需要动态传入表名或者字段名需要用 ${}比如,像 ORDER BY 时只 阅读全文
posted @ 2022-06-29 22:06 每日一小步 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/u010142437/article/details/80395739 阅读全文
posted @ 2022-06-29 16:47 每日一小步 阅读(24) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> <scope>provided</scope></dependency> scop 阅读全文
posted @ 2022-06-29 15:56 每日一小步 阅读(288) 评论(0) 推荐(0) 编辑