저는 Play 프레임 워크에서 매우 새로운 기능입니다. 나는 아주 간단한 길을 추가 할 계획이다. 그러나 행동은 발견되지 않는다고 계속 말하고있다.Play Framework 2.5.x에서 경로를 추가하는 방법은 무엇입니까?
색인에서만 작동합니다. 발견되지
작업 :
내 Application.java :
public class Application extends Controller {
public Result index() {
return ok(index.render());
}
public Result home() {
return ok(home.render());
}
}
라우트 구성 파일 :
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
# Landing page
GET / controllers.Application.index()
GET /home controllers.Application.home()
# Map the JS resource paths
GET /*file controllers.Assets.versioned(path="/public", file: Asset)
이 activator clean compile
을 시도하지만 여전히 작동하지 않습니다 .
당신은 모든 것을 시도 했습니까? –
@DenisBarucic 예. 나는 그랬다. –
응용 프로그램에 모듈이 설치되어 있습니까? 동일한 프로젝트에 많은 경로 파일이있을 수 있습니까? conf/routes에있는 파일인지, 다른 경로 파일에 있는지 확인하십시오. –