浏览代码

getControllerKey 更名为 getControllerPath()

James 5 年之前
父节点
当前提交
7f57391be8
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/main/java/com/jfinal/validate/Validator.java

+ 10 - 2
src/main/java/com/jfinal/validate/Validator.java

@@ -167,10 +167,18 @@ public abstract class Validator implements Interceptor {
 	}
 	}
 	
 	
 	/**
 	/**
-	 * Return the controller key of this action.
+	 * Return the controller path of this action.
 	 */
 	 */
+	protected String getControllerPath() {
+		return invocation.getControllerPath();
+	}
+	
+	/**
+	 * 该方法已改名为 getControllerPath()
+	 */
+	@Deprecated
 	protected String getControllerKey() {
 	protected String getControllerKey() {
-		return invocation.getControllerKey();
+		return invocation.getControllerPath();
 	}
 	}
 	
 	
 	/**
 	/**