routesapp
play的路由保存在conf/routes文件夾spa
相似於這個樣子:.net
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~插件
# Home page
GET / Application.index
GET /menu/{userid} Application.menucode
GET /tv TvScheduleAction.indexblog
# Catch all
* /BusWeb/{controllername}/{actionname}.action Application.switcher
* /BusWeb/system/updatefile Application.switcher(controllername:'system',actionname:'updatefile')
* /plugin路由
public static void switcher(String controllername, String actionname)it
throws Exception { String actionUrl = "/" + controllername.toUpperCase() + "/" + actionname.toUpperCase(); //處理業務 }
上面是一個特殊的例子。io
具體的參考http://blog.csdn.net/jasper_success/article/details/48370235class
這裏只說一下play插件的路由。