Scala play - “not found: value routes” (Eclipse and IDEA)

前端 未结 7 1960
一整个雨季
一整个雨季 2021-02-20 10:46

Occasionally, and seemingly for no reason, I get \"not found: value routes\" compilation error in one of the view templates (after compilation). This happens either in Eclipse o

7条回答
  •  情深已故
    2021-02-20 10:58

    This happens when there is no route configuration for your Assets in the routes file.

    You must add this to your routes file:

    GET   /assets/*file  controllers.Assets.at(path="/public", file)
    

提交回复
热议问题