2013-11-21 1 views

답변

4

당신은 당신의 application.conf에서 설정 또는 JVM 플래그 경로 파일 그냥 application.conf 수있는 것처럼, 다른 경로의 파일이 포함되어 수

-Dapplication.router=my.application.Routes

https://github.com/playframework/playframework/blob/2.2.1/framework/skeletons/java-skel/conf/application.conf#L20

# Router 
# ~~~~~ 
# Define the Router object to use for this application. 
# This router will be looked up first when the application is starting up, 
# so make sure this is the entry point. 
# Furthermore, it's assumed your route file is named properly. 
# So for an application router like `conf/my.application.Router`, 
# you may need to define a router file `my.application.routes`. 
# Default to Routes in the root package (and `conf/routes`) 
# application.router=my.application.Routes 
+1

를 사용할 수 있습니까? – zzhang

+0

예 실제 사례는 https://github.com/beligum에 있으며 http://www.playframework.com/documentation/2.2.x/SBTSubProjects "경로 파일 분할"을 참조하십시오. – Schleichardt

관련 문제