Mybait传参 #{} 与${}区别

146 阅读1分钟

#{} 防止sql注入 #{username} 里面可以传其他参数,更灵活

{}字符串拼接 ,不安全;里面只能{value}