Browse Source

getControllerKey 更名为 getControllerPath()

James 5 years ago
parent
commit
7f57391be8
1 changed files with 10 additions and 2 deletions
  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() {
-		return invocation.getControllerKey();
+		return invocation.getControllerPath();
 	}
 	
 	/**