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

前端 未结 7 1908
一整个雨季
一整个雨季 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:55

    I have this working defining an Asset Controller

    object Assets extends controllers.AssetsBuilder
    

    and having the route for assets too in the routes conf:

    \#Map static resources from the /public folder to the /assets URL path
    GET     /assets/*file          premise.internet_org.controllers.Assets.at(path="/public", file)
    

提交回复
热议问题