Image 在Play Framework 2.10中路由到图像和css
我的设计师已经完成了整个网站,我需要使它的工作使用播放2.10 问题是: 所有资产都以这种方式加载Image 在Play Framework 2.10中路由到图像和css,image,playframework,routes,assets,playframework-2.1,Image,Playframework,Routes,Assets,Playframework 2.1,我的设计师已经完成了整个网站,我需要使它的工作使用播放2.10 问题是: 所有资产都以这种方式加载 <img src="images/logo.png" alt="" /> 但结果是 “/”应该是,但“我”找到了 如何在不重写所有URL的情况下路由到我的资产 提前谢谢 莱昂纳多·罗德里戈(Leonardo Rodrigo)缺少斜杠,请尝试: GET /images/*file controllers.Assets.at(path="/public/images", file)
<img src="images/logo.png" alt="" />
但结果是“/”应该是,但“我”找到了 如何在不重写所有URL的情况下路由到我的资产 提前谢谢
莱昂纳多·罗德里戈(Leonardo Rodrigo)缺少斜杠,请尝试:
GET /images/*file controllers.Assets.at(path="/public/images", file)
GET /images/*file controllers.Assets.at(path="/public/images", file)