Browse Source

getControllerKey 更名为 getControllerPath

James 5 years ago
parent
commit
64892ab0f6

+ 1 - 1
src/main/java/com/jfinal/core/Action.java

@@ -57,7 +57,7 @@ public class Action {
 	}
 	
 	/**
-	 * 该方法已改名为 getControllerPath()
+	 * 该方法已改名为 getControllerPath()
 	 */
 	@Deprecated
 	public String getControllerKey() {

+ 8 - 0
src/main/java/com/jfinal/core/Controller.java

@@ -103,6 +103,14 @@ public abstract class Controller {
 		return rawData;
 	}
 	
+	public String getControllerPath() {
+		return action.getControllerPath();
+	}
+	
+	/**
+	 * 该方法已改名为 getControllerPath()
+	 */
+	@Deprecated
 	public String getControllerKey() {
 		return action.getControllerKey();
 	}