MyBatis防止SQL注入 2018-01-04 本文已影响0人 jsjack_wang 1.#与$区别 #{} 预编译(不可注入) ${} SQL拼接(可注入) 2.避免使用${} 如果一定要使用like, 可用concat('%', #{}, '%')替代