摘要:
默认情况下,使用#{}语法,MyBatis会产生PreparedStatement语句中,并且安全的设置PreparedStatement参数,这个过程中MyBatis会进行必要的安全检查和转义。 #相当于对数据 加上 双引号,$相当于直接显示数据 示例1:执行SQL:select * from e 阅读全文
摘要:
如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 1 首先检查电脑的防火墙是否关闭。 2 通过mysql命令来授权,其他电脑的访问权限。 方法一: 阅读全文
摘要:
@Controller和@RestController的区别?官方文档:@RestController is a stereotype annotation that combines @ResponseBody and @Controller.意思是:@RestController注解相当于@Re 阅读全文