"未找到行号#34; play2.3中config / routes文件中的错误

时间:2015-01-29 13:12:19

标签: scala playframework-2.3

播放中的路线文件会出现此错误

**错误:找不到符号

在/ home / smat / practical / Stocks / conf / routes(未找到行号)**

这是我的路线文件

 # Routes
    # This file defines all application routes (Higher priority routes first)
    # ~~~~

    # Home page
    GET     /                           controllers.Application.index

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

    # stocks
    GET     /stocks/add                 controllers.Stocks.add
    POST    /stocks/save                controllers.Stocks.save
    GET     /register               controllers.Stocks.registerUser
    POST    /register               controllers.Stocks.registerUser

请帮助

抱歉,我忘了在终端上分享错误

  

** [错误] /home/smat/practical/Stocks/target/scala-2.11/src_managed/main/contrllers/routes.java:8:   错误:找不到符号[error] public static final   contrllers.ReverseStocks Stocks = new contrllers.ReverseStocks();   [错误] ^ [错误]符号:类   ReverseStocks [错误]位置:包装控制器

     

[错误]   /home/smat/practical/Stocks/target/scala-2.11/src_managed/main/contrllers/routes.java:11:   错误:package contrllers.javascript不存在[error] public   static final contrllers.javascript.ReverseStocks Stocks = new   contrllers.javascript.ReverseStocks(); [错误]
  ^ [错误]   /home/smat/practical/Stocks/target/scala-2.11/src_managed/main/contrllers/routes.java:16:   错误:package contrllers.ref不存在[error] public static   final contrllers.ref.ReverseStocks Stocks = new   contrllers.ref.ReverseStocks(); [错误]
  ^ [错误]   /home/smat/practical/Stocks/target/scala-2.11/src_managed/main/contrllers/routes.java:8:   错误:找不到符号[error] public static final   contrllers.ReverseStocks Stocks = new contrllers.ReverseStocks();   [错误]
  ^ [错误]符号:类ReverseStocks [错误]位置:包   控制者[错误]   /home/smat/practical/Stocks/target/scala-2.11/src_managed/main/contrllers/routes.java:11:   错误:package contrllers.javascript不存在[error] public   static final contrllers.javascript.ReverseStocks Stocks = new   contrllers.javascript.ReverseStocks(); [错误]
  ^ [错误]   /home/smat/practical/Stocks/target/scala-2.11/src_managed/main/contrllers/routes.java:16:   错误:package contrllers.ref不存在[error] public static   final contrllers.ref.ReverseStocks Stocks = new   contrllers.ref.ReverseStocks(); [错误]
  ^ **

1 个答案:

答案 0 :(得分:0)

package contrllers.ref does not exist 

看起来你在源文件中的某处拼错了。尝试使用“控制器”而不是“控制器”查找项目目录中的文件。