0
我有一個問題,因爲出現這個錯誤我不能載入我的網絡中的一員:播放REST API - 對象不是包
對象UsersServices不是包裝控制器的成員
我使用REST API:
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Home page
GET / controllers.Assets.at(path="/public/view",file="index.html")
# Map static resources from the /public folder to the /assets URL path
GET /public/*file controllers.Assets.at(path="/public", file)
GET /api/users controllers.UsersServices.getUsers()
和Java中的功能非常簡單:
public static Result getUsers(){
return ok(Json.toJson(Test);
}
我依靠不知道如何解決它。