Play Framework For Scala: Compilation error[type Application is not a member of package controllers]

前端 未结 4 863
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 03:48

I try to compile a scala example in the book: \"Play for Scala\" but get a following compilation error on Play console:

C:\\Play\\exp\\ch6_implicits>activ         


        
4条回答
  •  伪装坚强ぢ
    2020-12-09 04:29

    Change your object to a class like this:

    object Shop extends Controller with WithCart {
    class Shop extends Controller with WithCart {
    
    object Application extends Controller with WithCart {
    class Application extends Controller with WithCart {
    

提交回复
热议问题