考察: static的用法 笔试题: 程序运行结果是 编译不通过(没运行结果):
public class Test {public int aMethod() {static int i 0;i;return i;}public static void main (String args[]) {Test test new Test();test.aMethod();int j te…
#{}和${}的区别 数据库数据
图片:
一、先说#{} 例:mapper.xml如下 select * from payment where name #{name};
1、#{}是一个占位符,相当于JDBC中的一个?,会对一些敏感的字符进行过滤 2、#{}底层采用…