Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 在Play Framework 2.10中路由到图像和css_Image_Playframework_Routes_Assets_Playframework 2.1 - Fatal编程技术网

Image 在Play Framework 2.10中路由到图像和css

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)

我的设计师已经完成了整个网站,我需要使它的工作使用播放2.10

问题是:

所有资产都以这种方式加载

<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)