diff --git a/mybatis-step-02/src/test/java/cn/bugstack/mybatis/test/ApiTest.java b/mybatis-step-02/src/test/java/cn/bugstack/mybatis/test/ApiTest.java index d9bc994..975e819 100644 --- a/mybatis-step-02/src/test/java/cn/bugstack/mybatis/test/ApiTest.java +++ b/mybatis-step-02/src/test/java/cn/bugstack/mybatis/test/ApiTest.java @@ -37,7 +37,7 @@ public void test_MapperProxyFactory() { public void test_proxy_class() { IUserDao userDao = (IUserDao) Proxy.newProxyInstance( Thread.currentThread().getContextClassLoader(), - new Class[]{IUserDao.class}, (proxy, method, args) -> "你被代理了!"); + new Class[]{IUserDao.class}, (proxy, method, args) -> "你的操作被代理了!"); String result = userDao.queryUserName("10001"); System.out.println("测试结果:" + result); } diff --git a/mybatis-step-03/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java b/mybatis-step-03/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java index 42ccf49..13fbee2 100644 --- a/mybatis-step-03/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java +++ b/mybatis-step-03/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java @@ -22,12 +22,12 @@ public DefaultSqlSession(MapperRegistry mapperRegistry) { @Override public T selectOne(String statement) { - return (T) ("你被代理了!" + statement); + return (T) ("你的操作被代理了!" + statement); } @Override public T selectOne(String statement, Object parameter) { - return (T) ("你被代理了!" + "方法:" + statement + " 入参:" + parameter); + return (T) ("你的操作被代理了!" + "方法:" + statement + " 入参:" + parameter); } @Override diff --git a/mybatis-step-04/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java b/mybatis-step-04/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java index dd2893d..14a0ce0 100644 --- a/mybatis-step-04/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java +++ b/mybatis-step-04/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java @@ -20,13 +20,13 @@ public DefaultSqlSession(Configuration configuration) { @Override public T selectOne(String statement) { - return (T) ("你被代理了!" + statement); + return (T) ("你的操作被代理了!" + statement); } @Override public T selectOne(String statement, Object parameter) { MappedStatement mappedStatement = configuration.getMappedStatement(statement); - return (T) ("你被代理了!" + "\n方法:" + statement + "\n入参:" + parameter + "\n待执行SQL:" + mappedStatement.getSql()); + return (T) ("你的操作被代理了!" + "\n方法:" + statement + "\n入参:" + parameter + "\n待执行SQL:" + mappedStatement.getSql()); } @Override diff --git a/mybatis-step-05/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java b/mybatis-step-05/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java index 1f308fe..a255e6d 100644 --- a/mybatis-step-05/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java +++ b/mybatis-step-05/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java @@ -28,7 +28,7 @@ public DefaultSqlSession(Configuration configuration) { @Override public T selectOne(String statement) { - return (T) ("你被代理了!" + statement); + return (T) ("你的操作被代理了!" + statement); } @Override diff --git a/mybatis-step-06/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java b/mybatis-step-06/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java index 1f308fe..a255e6d 100644 --- a/mybatis-step-06/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java +++ b/mybatis-step-06/src/main/java/cn/bugstack/mybatis/session/defaults/DefaultSqlSession.java @@ -28,7 +28,7 @@ public DefaultSqlSession(Configuration configuration) { @Override public T selectOne(String statement) { - return (T) ("你被代理了!" + statement); + return (T) ("你的操作被代理了!" + statement); } @Override