Play静态文件调用

conf.routes文件下添加:

Map static resources from the /public folder to the /assets URL path

GET /assets/*file controllers.Assets.at(path="/public", file)
即可使用/assets/来引用public目录下的文件

posted @ 2016-11-23 20:02  DeadGhost  阅读(189)  评论(0编辑  收藏  举报