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插件的路由。